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
Problem
MiniWebApp
Router::render*methods are: voidand end with a literalincludeof layout templates (examples/003-MiniWebApp/src/Router.php). Fixturetest/fixtures/aot/cases/method_include_void.phptdocuments the pattern but may not run in@group aot-linkyet.When #568 closed, nested include inlining (
lib/JIT.phpIncludeHelper,lib/JIT/Context.phpdepth) still needs a focused compliance target so render* regressions are caught before full #454 project link.Goal
method_include_void.phptpasses inAotTest/@group aot-linkHome(or fixture expectation) from void method + trailing includeImplementation hints
test/fixtures/aot/cases/method_include_void/entry.phpcalls method that includesinc.phplib/JIT.php,lib/JIT/IncludeHelper.phpinlineIncludeAtBlockfor method tail includeslib/Lint/UnsupportedRegistry.phpexamples/003-MiniWebApprenderHome()Acceptance criteria
Dependencies
:voidreturn enforcement at native linkLinks