Skip to content

Symfony 3.4 setScope Call to undefined method  #311

@wuestkamp

Description

@wuestkamp

Hi there,

uprading a project from 2.8 to 3.4, getting this error for "jms/di-extra-bundle": "1.9.*"

PHP Fatal error:  Call to undefined method Symfony\Component\DependencyInjection\Definition::setScope() in /Users/user/project/vendor/jms/di-extra-bundle/Metadata/MetadataConverter.php on line 85

Replacing setScope with setShared in that line solves the error? a la UPGRADE-3.0.md

Any idea?
Kim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions