Skip to content

AOT: Green method_include_void.phpt and @group aot-link for void+include methods #739

Description

@PurHur

Problem

MiniWebApp Router::render* methods are : void and end with a literal include of layout templates (examples/003-MiniWebApp/src/Router.php). Fixture test/fixtures/aot/cases/method_include_void.phpt documents the pattern but may not run in @group aot-link yet.

When #568 closed, nested include inlining (lib/JIT.php IncludeHelper, lib/JIT/Context.php depth) still needs a focused compliance target so render* regressions are caught before full #454 project link.

Goal

  • method_include_void.phpt passes in AotTest / @group aot-link
  • Output Home (or fixture expectation) from void method + trailing include

Implementation hints

Area Files Notes
Fixture test/fixtures/aot/cases/method_include_void/ entry.php calls method that includes inc.php
JIT/AOT lib/JIT.php, lib/JIT/IncludeHelper.php inlineIncludeAtBlock for method tail includes
Lint lib/Lint/UnsupportedRegistry.php Ensure void+include not blocked for project lint
Project examples/003-MiniWebApp Same pattern as renderHome()

Acceptance criteria

./script/ci-local.sh --filter method_include_void
# or Docker:
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
  ./script/ci-local.sh --filter method_include_void

Dependencies

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions