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

Update PHPStan and related packages #431

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Update PHPStan and related packages #431

merged 2 commits into from
Nov 11, 2024

Conversation

spaze
Copy link
Owner

@spaze spaze commented Nov 11, 2024

Also downgrade to level 9, because the new max is level 10 and that needs some more work to comply with it.

 - phpstan/phpstan updated from 1.12.10 to 2.0.1 major
   See changes: phpstan/phpstan@1.12.10...2.0.1
   Release notes: https://github.com/phpstan/phpstan/releases/tag/2.0.1

 - phpstan/phpstan-deprecation-rules updated from 1.2.1 to 2.0.0 major
   See changes: phpstan/phpstan-deprecation-rules@1.2.1...2.0.0
   Release notes: https://github.com/phpstan/phpstan-deprecation-rules/releases/tag/2.0.0

 - phpstan/phpstan-nette updated from 1.3.8 to 2.0.0 major
   See changes: phpstan/phpstan-nette@1.3.8...2.0.0
   Release notes: https://github.com/phpstan/phpstan-nette/releases/tag/2.0.0

 - spaze/phpstan-disallowed-calls updated from v3.5.1 to v4.0.0 major
   See changes: spaze/phpstan-disallowed-calls@v3.5.1...v4.0.0
   Release notes: https://github.com/spaze/phpstan-disallowed-calls/releases/tag/v4.0.0

 - spaze/phpstan-disallowed-calls-nette updated from v2.0.2 to v3.0.0 major
   See changes: spaze/phpstan-disallowed-calls-nette@v2.0.2...v3.0.0
   Release notes: https://github.com/spaze/phpstan-disallowed-calls-nette/releases/tag/v3.0.0
@spaze spaze merged commit 646aed3 into main Nov 11, 2024
37 checks passed
@spaze spaze deleted the spaze/update-packages branch November 11, 2024 21:31
@spaze spaze mentioned this pull request Dec 10, 2024
spaze added a commit that referenced this pull request Dec 11, 2024
This prepares the code for PHPStan to pass at the new level 10 introduced in PHPStan 2.0 (#431). The level is not set to 10 yet in this PR.

Besides some other things, this adds `assert()` calls to assert types for database rows and form field values. Tests are also added to make sure these asserts are correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant