I would start with deleting the vendor folder and clear composer cache.
If it is still an issue, you are going to have to try upgrading individual packages until it fails.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
just executded the regular "composer up" command on Laravel 11, PHP 8.3 and now facing:
Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?
at vendor/laravel/framework/src/Illuminate/Container/Container.php:1570
1566▕ * @return mixed
1567▕ */
1568▕ public function offsetGet($key): mixed
1569▕ {
➜ 1570▕ return $this->make($key);
1571▕ }
1572▕
1573▕ /**
1574▕ * Set the value at a given offset.
+22 vendor frames
23 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
+5 vendor frames
29 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Already tried in php.ini with "zend.max_allowed_stack_size=-1" but no success
I have no clue what the cause is. I would be grateful for any hint - thank you!
I would start with deleting the vendor folder and clear composer cache.
If it is still an issue, you are going to have to try upgrading individual packages until it fails.
Please or to participate in this conversation.