Housekeeping: drop the stale cache, fail on deprecations - #54
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #54 +/- ##
=========================================
Coverage 81.93% 81.93%
Complexity 148 148
=========================================
Files 31 31
Lines 487 487
=========================================
Hits 399 399
Misses 88 88 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 7, 2026 12:03
c17b1a2 to
df6dd77
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 7, 2026 12:03
0c0cd69 to
3b2efc9
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 7, 2026 12:18
df6dd77 to
00aed2f
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 7, 2026 12:18
3b2efc9 to
f15ba02
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 7, 2026 12:47
00aed2f to
964b4b5
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 7, 2026 12:47
f15ba02 to
a25a734
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 7, 2026 12:51
964b4b5 to
6064e42
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 7, 2026 12:51
a25a734 to
19e4dc4
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 7, 2026 12:57
6064e42 to
064cf2d
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 7, 2026 12:57
19e4dc4 to
05661e3
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 14, 2026 07:29
064cf2d to
14071bb
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 14, 2026 07:29
05661e3 to
1c561a1
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 14, 2026 07:39
14071bb to
caf2c06
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 14, 2026 07:39
1c561a1 to
a1ba85f
Compare
loevgaard
commented
Sep 14, 2026
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 14, 2026 07:42
a1ba85f to
dd4d2ee
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 14, 2026 07:52
caf2c06 to
3ab6fc1
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 14, 2026 07:52
dd4d2ee to
6b7d6b4
Compare
loevgaard
force-pushed
the
fix/30-bundle-structure
branch
from
September 14, 2026 08:00
3ab6fc1 to
7b3e810
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 14, 2026 08:01
6b7d6b4 to
2a121ed
Compare
loevgaard
changed the base branch from
fix/30-bundle-structure
to
fix/29-cookie-domain
September 14, 2026 08:01
loevgaard
force-pushed
the
fix/29-cookie-domain
branch
from
September 14, 2026 08:07
cf58c0c to
c7e08ee
Compare
loevgaard
force-pushed
the
fix/33-housekeeping
branch
2 times, most recently
from
September 14, 2026 08:13
18e58ef to
e0b0e4d
Compare
Remove the .phpunit.result.cache entry and the file it referred to, left at the root from before cacheDirectory was configured, and turn on failOnDeprecation with restrictDeprecations so this bundle's own deprecations surface without the upstream ones from setono/bot-detection-bundle masking them. Fixes #33
loevgaard
force-pushed
the
fix/33-housekeeping
branch
from
September 14, 2026 08:16
e0b0e4d to
40d816a
Compare
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 #33
Changes
Stale cache.
phpunit.xml.distsetscacheDirectory=".build/phpunit", but a.phpunit.result.cachefrom before that change was still sitting at the repository root, along with the now-pointless.gitignoreentry for it. Both removed.Deprecations now fail the build. The suite reported three PHP deprecations on PHP 8.4, all from
setono/bot-detection-bundle(BotDetector::__construct()parameter$popularandBotDetectorInterface::isBotRequest()parameter$requestare implicitly nullable). Because they came from a dependency they could not be fixed here, and while they were in the output a new deprecation from this bundle's own code would have gone unnoticed.<source restrictDeprecations="true">limits reporting to deprecations triggered by code undersrc/, which makesfailOnDeprecation="true"safe to turn on, together withfailOnNoticeandfailOnWarning.Note the attribute name: PHPUnit 11 renames it to
ignoreIndirectDeprecations, which PHPUnit 10.5 rejects. The bundle supports PHP 8.1, PHPUnit 11 requires PHP 8.2, so 10.5 has to keep working andrestrictDeprecationsis the spelling that validates under both. There is a comment in the file warning against running the configuration migration, which would silently rename it.Still worth doing upstream: giving those two
BotDetectorInterfaceparameters an explicit?Type, since PHP 9 turns the deprecation into an error. Once released, the constraint here can be bumped and this restriction revisited.Not included
IDE ignores (
.idea/,.vscode/) were in an earlier revision and have been dropped: they belong in a developer's global gitignore rather than in the project.Note on Codecov
The coverage job uploads to Codecov but nothing consumes the result. That is handled in #56 rather than here.