Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead
PHP 8.4 will be released in November 2024, but the list of new features and deprecated features is already very established. It is clearly detailled on php.watch/versions/8.4. The most prominent change is the deprecation of implicit nullable parameter declarations: function test(string $test = null) {} test(‘PHP’); // Allowed test(null); // Allowed which is easy to…