-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Description
Support question
Hello,
I'm using the hoa/websocket package which rely to class_alias to simplify some class names...
For example the class Hoa\Socket\Connection\Connection is aliased to Hoa\Socket\Connection.
You can check the definition here: https://github.com/hoaproject/Socket/blob/master/Source/Connection/Connection.php#L813
After updating to phpstan 0.12.9, I got an error :
Reflection error: Hoa\Socket\Connection not found.
Before the update, the analysis hasn't any trouble with the @param and @var aliased class names.
I saw that there is a new typeAliases in the configuration but it doesn't seems to fix my issue. Here is my local phpstan.neon configuration :
includes:
- vendor/jangregor/phpstan-prophecy/src/extension.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- public
- src
- tests
typeAliases:
Hoa\Socket\Connection: 'Hoa\Socket\Connection\Connection'
Hoa\Stream: 'Hoa\Stream\Stream'Do you know how to understand this issue and fix it ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels