Menu

Post image 1
Post image 2
1 / 2
0

The PHP 8.5 deprecation sweep: from 34 warnings to zero

DEV Community·Russell Jones·21 days ago
#fb0JTATe
Reading 0:00
15s threshold

Ahnii! Second in the PHP 8.5 upgrade series . The first post covered the floor-bump mechanics. This one is about what 8.5 surfaced when the floor moved and how the sweep cleared it. Mission: php-8-5-upgrade-01KR8DN2 , work package WP02. Merge commit e0f8cb57 . The CHANGELOG entry for alpha.176 records the verification: 34 PHPUnit deprecations to 0, across 7,497 tests. The starting number Before WP02 ran, the test suite was emitting 34 deprecation warnings against 8.5. That number does not measure how broken the codebase was. It measures how dense the test corpus is. A weaker test suite would have surfaced fewer warnings because fewer code paths run during CI. PHPUnit's deprecation handling matters here. Waaseyaa runs PHPUnit in strict mode where deprecation messages are captured and counted per test, not just printed. The mission's exit criterion was zero deprecations on the matrix that already ran 18,118 assertions.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More