Constructor readonly
properties not detected as a PHP 8.1 feature
#374
Labels
readonly
properties not detected as a PHP 8.1 feature
#374
Bug report category
Summary
Constructor readonly properties not detected as a PHP 8.1 feature.
Learn more with https://php.watch/versions/8.1/readonly#constructor-readonly
Expected behaviour
Detect constructor
readonly
properties withBartlett\CompatInfo\Application\Sniffs\Classes\ReadonlyPropertySniff
Actual behaviour
Only class property in AST (with
Node\Stmt\Property
) is analysed.Should also analyse in AST (the param list of
Node\FunctionLike
)The text was updated successfully, but these errors were encountered: