We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Version: 7.4.28
OS: Debian Buster
Run command:
php-linter check --kphp --kphp7
The minimal code in which the bug appears:
Let's say we define an abstract class and extending class
abstract class A { /** * @param mixed[] $user */ abstract public function foo(array $user); } class B { /** * @inheritDoc */ public function foo(array $user) { ... } }
Actual Behavior:
Linter says "Specify the type for the parameter $user in PHPDoc, 'array' type hint is too generic.
Expected Behavior:
I expect linter to inherit mixed[] type from base class method. This is how kphp actually work.
mixed[]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PHP Version: 7.4.28
OS: Debian Buster
Run command:
The minimal code in which the bug appears:
Let's say we define an abstract class and extending class
Actual Behavior:
Linter says "Specify the type for the parameter $user in PHPDoc, 'array' type hint is too generic.
Expected Behavior:
I expect linter to inherit
mixed[]
type from base class method. This is how kphp actually work.The text was updated successfully, but these errors were encountered: