[PHP 8.4] Fixes for implicit nullability deprecation (#20133)

Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.
Related to #20128.

See:
 - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types)
 - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

Co-authored-by: Wilmer Arambula <terabytesoftw@gmail.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
Ayesh Karunaratne
2024-03-26 15:27:58 +07:00
committed by GitHub
parent ac1a5af67b
commit a292af13bf
11 changed files with 15 additions and 15 deletions

View File

@ -21,7 +21,7 @@ class FakePhp71Controller extends Controller
{
public $enableCsrfValidation = false;
public function actionInjection($before, Request $request, $between, VendorImage $vendorImage, Post $post = null, $after)
public function actionInjection($before, Request $request, $between, VendorImage $vendorImage, ?Post $post = null, $after)
{
}