Page MenuHomePhorge

Fix implicitly nullable parameter declarations for PHP 8.4
ClosedPublic

Authored by aklapper on Oct 23 2024, 10:14.
Tags
None
Referenced Files
F4011818: D25832.1746626726.diff
Tue, May 6, 14:05
F3828281: D25832.1746054139.diff
Tue, Apr 29, 23:02
F3815701: D25832.1746013631.diff
Tue, Apr 29, 11:47
F3801610: D25832.1745957808.diff
Mon, Apr 28, 20:16
F3731014: D25832.1745735269.diff
Sat, Apr 26, 06:27
F3671246: D25832.1745468991.diff
Wed, Apr 23, 04:29
F3605320: D25832.1745262761.diff
Sun, Apr 20, 19:12
F3553357: D25832.1744929344.diff
Wed, Apr 16, 22:35

Details

Summary

Followup to rPdb61eb20 and rPf3d49f74. This patch should cover all remaining issues now that PHPStan covers it (instead of the previous trial-and-error approach).

Implicitly nullable parameter declarations are deprecated in PHP 8.4:
https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

The proposed syntax was introduced in PHP 7.1 and Phorge requires PHP 7.2 now.

Test Plan

Run static code analysis.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable