Skip to content

Fix deploy: update php-workshop for compilable container listeners - #351

Merged
AydinHassan merged 1 commit into
masterfrom
bump-php-workshop
Oct 24, 2026
Merged

AydinHassan merged 1 commit into
masterfrom
bump-php-workshop

Conversation

@AydinHassan

Copy link
Copy Markdown
Member

The launch deploy (run 40085754610) failed in deploy:clear-cache with Cannot compile closures which import variables using the use keyword. Production sets CACHE.ENABLE=true, which compiles the DI container, and php-workshop's containerListener() returned an arrow function. php-school/php-workshop#332 made it return a create() definition. This updates composer.lock to that commit.

Testing: with CACHE.ENABLE=true, the container compiles (var/container_cache/CompiledContainer.php) and bin/app starts. PHPUnit (145 tests) and PHPStan level 9 pass.

The launch deploy failed in clear-cache: with CACHE.ENABLE=true the
container is compiled, and php-workshop's containerListener() returned a
closure PHP-DI can't compile. php-workshop#332 fixed that.
@AydinHassan
AydinHassan merged commit b03d18f into master Oct 24, 2026
3 checks passed
@AydinHassan
AydinHassan deleted the bump-php-workshop branch October 24, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant