Skip to content

3.4.15 only: PhpDumper "Cannot dump definitions which have method calls." #28557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wuestkamp opened this issue Sep 22, 2018 · 1 comment
Closed

Comments

@wuestkamp
Copy link

wuestkamp commented Sep 22, 2018

Symfony version(s) affected: 3.4.15

Description
When following the symfony-cmf installation guide with SF 3.4.15 I get the following error:

Cannot dump definitions which have method calls.

This is not the case with 3.4.14, so downgrading solves.

How to reproduce
I created a test project for this.

git clone git@github.com:wuestkamp/my_project_name.git
cd my_project_name
composer install

This will show the error.

Additional context
Here is the verbose output:

In PhpDumper.php line 1761:
                                                                      
  [Symfony\Component\DependencyInjection\Exception\RuntimeException]  
  Cannot dump definitions which have method calls.                    
                                                                      

Exception trace:
 Symfony\Component\DependencyInjection\Dumper\PhpDumper->dumpValue() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:642
 Symfony\Component\DependencyInjection\Dumper\PhpDumper->addServiceMethodCalls() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:521
 Symfony\Component\DependencyInjection\Dumper\PhpDumper->addServiceInlinedDefinitions() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:834
 Symfony\Component\DependencyInjection\Dumper\PhpDumper->addService() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:889
 Symfony\Component\DependencyInjection\Dumper\PhpDumper::generateServiceFiles() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:218
 Symfony\Component\DependencyInjection\Dumper\PhpDumper->dump() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:859
 Symfony\Component\HttpKernel\Kernel->dumpContainer() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:663
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:135
 Symfony\Component\HttpKernel\Kernel->boot() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:64
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /Users/kim/tmp/my_project_name/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
 Symfony\Component\Console\Application->run() at /Users/kim/tmp/my_project_name/bin/console:27

When I debug, then in PhpDumper::dumpValue the $value is of class Symfony\Component\DependencyInjection\Definition

@nicolas-grekas
Copy link
Member

Duplicate of #28296 and #28304, already fixed in 3.4-dev. Will be fixed in 3.4.16.
Thanks for the report.

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

No branches or pull requests

2 participants