8000 Cannot dump definitions which have method calls. · Issue #28362 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Cannot dump definitions which have method calls. #28362

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
FabienSalles opened this issue Sep 4, 2018 · 2 comments
Closed

Cannot dump definitions which have method calls. #28362

FabienSalles opened this issue Sep 4, 2018 · 2 comments

Comments

@FabienSalles
Copy link
Contributor

Symfony version(s) affected: 3.4.15

Description
When I used composer update in order to update my symfony version 3.4.14 to 3.4.15, I had this error when symfony tried to clear the cache

Loading composer repositories with package information
Updating dependencies (including require-dev)
    1/1:	https://codeload.github.com/symfony/symfony/legacy.zip/5bb5c2d4b0d5cf10672015b68519a199e6ac27c1
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Package operations: 0 installs, 1 update, 0 removals
  - Updating symfony/symfony (v3.4.14 => v3.4.15): Loading from cache
Package symfony/assetic-bundle is abandoned, you should avoid using it. Use symfony/webpack-encore-pack instead.
Writing lock file
Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> cp -r vendor/tinymce/tinymce vendor/stfalcon/tinymce-bundle/Stfalcon/Bundle/TinymceBundle/Resources/public/vendor
> Sidus\FileUploadBundle\Composer\ScriptHandler::symlinkJQueryFileUpload
Checking SymlinkOK
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

In PhpDumper.php line 1761:
                                                    
  Cannot dump definitions which have method calls.  
                                                    
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception
                                                 
  [RuntimeException]                                                         
  An error occurred when executing the "'cache:clear --no-warmup'" command:     
                                                                          
  In PhpDumper.php line 1761:                                                
    Cannot dump definitions which have method calls.

Additional context
I cleared composer cache and deleted my vendor folder but this error continues to appear only when I upgrade the version 3.4.14 to 3.4.15. When I downgrade 3.4.15 to 3.4.14 I have no issues.

@nicolas-grekas
Copy link
Member

We're on it, see #28296

@nicolas-grekas
Copy link
Member

Can you please report if applying #28366 fixes your issue?

nicolas-grekas added a commit that referenced this issue Sep 5, 2018
This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Fix dumping some complex service graphs

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28296 (and its duplicates #28355 & #28362 ~+ possibly #28304~)
| License       | MIT
| Doc PR        | -

Commits
-------

769fd4b [DI] Fix dumping some complex service graphs
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
0