Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Debug] New @method detection #10504

Closed
Closed
@ro0NL

Description

@ro0NL

See symfony/symfony#28902

Basically enables adding methods to interfaces in an upcoming major. Not declaring real methods for @method annotations will trigger a deprecation in the current major.

  • the vendor should depend on a method_exists() check in the current major, providing a fallback in case the consumer object is not yet upgraded
  • the vendor should declare the real interface method in the upcoming major, removing the @method annotation and method_exists check at this point
  • the consumer should fix deprecation before upgrading, not doing so will hard cause a hard crash due the above changes by the vendor

I think it should be added to https://symfony.com/bc also

The detected signature, per phpdoc3, is:

@method [[static] return type] [name]([[type] [parameter]<, ...>]) [<description>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions