Skip to content

[Debug] New @method detection #10504

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy