Skip to content

Conversation

MatthiasKuehneEllerhold

Nullable parameters must be marked as nullabe in PHP 8.4+
e. g.
public function __construct(ContainerInterface $serviceManager, TwigRenderer $renderer = null)
The $renderer is NOT marked as nullable, but has a default value of null. So PHP <= 8.3 marks it as nullable implicitely. In PHP 8.4+ you have to mark this parameter as nullable explicitely.

I had to bump the PHP min version to 7.1 (from 7.0) because without it parameters cant be marked nullable (with ?).

@MatthiasKuehneEllerhold
Copy link
Author

MatthiasKuehneEllerhold commented Apr 30, 2025

Ive made the unit tests PHP 8.4 compatible too. The problem is, that now the tests only work on 8.1+. The lib itself should work below that but Laminas-Test and PHPUnit have a minimum php version of 8.1.

What do you want me to do? I could do more updating to bring the whole lib to 8.1+...

@MatthiasKuehneEllerhold
Copy link
Author

@OxCom Any news?

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.

1 participant