Skip to content

Fix implicit null issues for php 8.4 - #40

Merged
patinthehat merged 5 commits into
permafrost-dev:mainfrom
msievenpiper:early-php8.4-support
Oct 29, 2026
Merged

patinthehat merged 5 commits into
permafrost-dev:mainfrom
msievenpiper:early-php8.4-support

Conversation

@msievenpiper

@msievenpiper msievenpiper commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

Update previously common "implicit" nullable method inputs that are now deprecated in PHP 8.4 and future versions.

These changes maintain PHP 7.4 support for the time being, but as versions prior to 8.2 are now EoL, support for them should be removed at a later stage.

The snapshot tests were failing on main as well as here: they serialise result objects with symfony/serializer, and composer picks a different serializer major per PHP version (5.4 on 7.4, 6.x on 8.0/8.1, 7.x/8.x on 8.2+). Each one orders properties differently and newer ones include the protected $file. symfony/serializer, property-access and property-info are now pinned to ^5.4 in require-dev, which works on every PHP version from 7.4 to 8.5, so every job serialises the same way. One snapshot is re-recorded for the partialFunctionApplication field nikic/php-parser 5.9 added. The full suite now runs on 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5.

@codecov

codecov Bot commented Jun 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.53%. Comparing base (ccdb744) to head (e727dad).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main      #40   +/-   ##
=========================================
  Coverage     82.53%   82.53%           
  Complexity      225      225           
=========================================
  Files            49       49           
  Lines           618      618           
=========================================
  Hits            510      510           
  Misses          108      108           
Files with missing lines Coverage Δ
src/Support/VirtualFile.php 92.31% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbbca18...e727dad. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

… versions 7.4 and <= 8.3 therefore we should omit the comparisons till we remove support for these older versions
@msievenpiper
msievenpiper marked this pull request as ready for review October 22, 2026 11:27
@patinthehat
patinthehat merged commit 07d18cb into permafrost-dev:main Oct 29, 2026
10 checks passed
@patinthehat

Copy link
Copy Markdown
Member

Apologies for the delay merging. Thank you! 👍

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.

2 participants