Skip to content

SoapClient extention is ignoring @method annotation #12834

@HonzaZimmermann

Description

@HonzaZimmermann

Bug report

Hi,

The SoapClient in PHP is actually a class based on magic methods. I'd like to hint PHPStan so I've defined @method type name() for each method supported by the API (based on wsdl file). The problem is PHPStan is completely ignoring the @method annotations for class extending SoapClient. See example https://phpstan.org/r/0185f98e-0414-4fc0-90f9-14447b254360

It is working properly for any other class, but not for SoapClient descendants.

Jan

Code snippet that reproduces the problem

No response

Expected output

@method annotation in the SoapClient should not be ignored.

Did PHPStan help you today? Did it make you happy in any way?

I'm using PHPStan every day. It is the main reason we don't migrate the project to different programming language. Thanks for this great tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions