Skip to content
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

Merged
merged 1 commit into from
May 16, 2024
Merged

PHPStan 1.11.1 #6399

merged 1 commit into from
May 16, 2024

Conversation

derrabus
Copy link
Member

No description provided.

@derrabus derrabus added this to the 3.8.5 milestone May 16, 2024
@@ -184,7 +184,7 @@ public function iterateAssociative(): Traversable
}

/**
* {@inheritDoc}
* @return Traversable<int,list<mixed>>
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

@derrabus derrabus requested a review from greg0ire May 16, 2024 06:44
@derrabus derrabus merged commit fcc6381 into doctrine:3.8.x May 16, 2024
92 checks passed
@derrabus derrabus deleted the bump/phpstan branch May 16, 2024 07:22
derrabus added a commit that referenced this pull request May 16, 2024
|      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.
derrabus added a commit to derrabus/dbal that referenced this pull request May 16, 2024
* 3.8.x:
  Fix return type of iterateKeyValue() (doctrine#6402)
  PHPStan 1.11.1 (doctrine#6399)
derrabus added a commit that referenced this pull request May 16, 2024
* 4.0.x:
  Fix iterable type errors
  Fix return type of iterateKeyValue() (#6402)
  Psalm 5.24.0 (#6401)
  PHPUnit 10.5.20 (#6400)
  PHPStan 1.11.1 (#6399)
derrabus added a commit that referenced this pull request May 16, 2024
* 4.1.x:
  Fix iterable type errors
  Fix return type of iterateKeyValue() (#6402)
  Psalm 5.24.0 (#6401)
  PHPUnit 10.5.20 (#6400)
  PHPStan 1.11.1 (#6399)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants