- π©πͺGermany donquixote
For union types there is now this new issue:
π Fatal error when using a union type on a controller's callback Active
PHP has deprecated \ReflectionParameter::getClass(). We should replace our usages of it:
We use it in:
Add helper to core/lib/Drupal/Component/Utility to handle this. Hopefully this approach will make it easier to backport to Drupal 8 and supporting PHP7 means that we need to still use getClass() there. It's not necessary at all in Drupal 9 since the reflection classes and methods we should use exist since PHP 7.2.
None
None
Calls to \ReflectionParameter::getClass()
should be replaced with \Drupal\Component\Utility\Reflection::getParameterClassName($parameter);
. Note that Reflection::getParameterClassName()
returns the class name as a string and not a \ReflectionClass object.
None
In order to be PHP 8 compatible code that uses \ReflectionParameter::getClass()
should use the new utility \Drupal\Component\Utility\Reflection::getParameterClassName()
instead. See
Fixed
9.1
Last updated
The issue particularly affects sites running on PHP version 8.0.0 or later.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
For union types there is now this new issue:
π
Fatal error when using a union type on a controller's callback
Active