Closed
Description
Symfony version(s) affected: 4.4.18
Description
$parameter->getDeclaringClass()->getName()
fails because getDeclaringClass
returns null.
This only happens on PHP 8 because
current
in PHP 8 will result in a parameter type hint being array|object
, while PHP 7 did not have a type hint: https://3v4l.org/YKHtO and apparently Symfony also does not support union types as per @nicolas-grekas.
How to reproduce
I could not reduce it to a minimal repro case sorry