8000 [Messenger] Remove deprecated call to ReflectionType::__toString() for PHP 7.4 support · Issue #32397 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Messenger] Remove deprecated call to ReflectionType::__toString() for PHP 7.4 support #32397
Closed
@volkyeth

Description

@volkyeth

This call is throwing a deprecation warning on php 7.4:

return [(string) $parameters[0]->getType()];

Deprecated: Function ReflectionType::__toString() is deprecated in /var/www/app/vendor/symfony/messenger/DependencyInjection/MessengerPass.php on line 222

The alternative is to use getName():

         return [$parameters[0]->getType()->getName()]; 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0