Repository navigation
Upgrade phpstan to 2.x and regenerate the baseline - #351
Merged
Merged
Conversation
Martin-1997
force-pushed
the
build/330-phpstan-2
branch
2 times, most recently
from
November 21, 2026 18:49
05f1d4f to
05deeaa
Compare
Martin-1997
force-pushed
the
build/329-platform-support
branch
from
November 22, 2026 19:37
aa41809 to
a6ab9da
Compare
phpstan 1.12 is end-of-life. 2.3 reports no new findings at level 3 with the existing configuration, against both the Nextcloud 33 and 35 stubs. The baseline is regenerated for both stub versions and merged (each entry kept if either needs it, with the higher count): 61 entries instead of 82; the 21-28 stale ones are gone, and every entry now has phpstan 2's error identifier. phpstan.neon needs no changes. Fixes #330 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Martin-1997
force-pushed
the
build/330-phpstan-2
branch
from
November 22, 2026 19:38
05deeaa to
261ba69
Compare
Martin-1997
changed the base branch from
build/329-platform-support
to
master
November 22, 2026 19:47
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #330
Changes
phpstan/phpstan: 1.12.34 → 2.3.7 (dev dependency only; not part of the release).phpstan-baseline.neonregenerated: 59 entries instead of 82.variable.undefinedentries forgetGoals()were removed (fixed in fix(goals): validate add-goal and mark invalid goals #357). All remaining entries still match on the Nextcloud 33 stubs.phpstan.neon: no changes needed.reportUnmatchedIgnoredErrors: falsestays, since some entries only apply to one stub version.No breaking changes
What the baseline contains
method.notFoundTablemethods in migrationsproperty.notFound$this->request->xaccessclass.notFoundnullCoalesce.variable'test' => $cost ?? 't'inadd-cost, a harmless debug leftoverFound along the way: the two
variable.undefinedentries were a bug ingetGoals(): goals with an interval other than Weekly/Monthly (possible through the API) used the previous goal's figures. It was fixed separately in #357 (issue #356) with regression tests, and the entries are no longer in the baseline.Testing
v35.0.3anddev-stable33: no errors with the new baseline.🤖 Generated with Claude Code