-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
PHPStan 1.11.1 #6399
New issue
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
PHPStan 1.11.1 #6399
Conversation
@@ -184,7 +184,7 @@ public function iterateAssociative(): Traversable | |||
} | |||
|
|||
/** | |||
* {@inheritDoc} | |||
* @return Traversable<int,list<mixed>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the only error that popped up while removing the checkMissingIterableValueType: false
setting, so I decided to fix it instead.
The @inheritDoc
statement is nonsense because there's no parent to inherit from.
ignoreErrors: | ||
- identifier: missingType.generics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the replacement for checkGenericClassInNonGenericObjectType: false
. There's too many errors when I just remove the setting, so I decided to keep ignoring this kind of error. We might want to revisit this issue on a higher branch though.
@@ -1,14 +1,14 @@ | |||
parameters: | |||
level: 8 | |||
phpVersion: 80200 | |||
phpVersion: 80300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I bumped here to evade phpstan/phpstan#10999
| Q | A |------------- | ----------- | Type | bug | Fixed issues | N/A #### Summary I messed this up in #6399. We cannot make any assumptions regarding key and value here.
* 3.8.x: Fix return type of iterateKeyValue() (doctrine#6402) PHPStan 1.11.1 (doctrine#6399)
No description provided.