Declaration of Doctrine\Common\Reflection\StaticReflectionClass::getConstants() must be compatible with ReflectionClass::getConstants() #10

Closed
opened 2026-01-24 11:24:47 +01:00 by admin · 3 comments
Owner

Originally created by @iVegas on GitHub (Jul 2, 2020).

Recent tests using PHP 8.0.0-alpha1 shows method implementation incompatibility.
Drupal 9 PHP 8.0 compatibility issue https://www.drupal.org/project/drupal/issues/3109885#comment-13730977
Tests results https://www.drupal.org/pift-ci-job/1745466

Originally created by @iVegas on GitHub (Jul 2, 2020). Recent tests using PHP 8.0.0-alpha1 shows method implementation incompatibility. Drupal 9 PHP 8.0 compatibility issue https://www.drupal.org/project/drupal/issues/3109885#comment-13730977 Tests results https://www.drupal.org/pift-ci-job/1745466
admin closed this issue 2026-01-24 11:24:47 +01:00
Author
Owner

@alexpott commented on GitHub (Jul 3, 2020):

This should be addressed by https://github.com/doctrine/reflection/pull/43

@alexpott commented on GitHub (Jul 3, 2020): This should be addressed by https://github.com/doctrine/reflection/pull/43
Author
Owner

@greg0ire commented on GitHub (Jul 28, 2020):

@iVegas we are considering deprecating this class and the biggest part of this package, consider migrating to something else (roave/better-reflection?)

@greg0ire commented on GitHub (Jul 28, 2020): @iVegas we are considering deprecating this class and the biggest part of this package, consider migrating to something else (`roave/better-reflection`?)
Author
Owner

@Firehed commented on GitHub (Oct 5, 2020):

StaticReflectionMethod is similarly affected:

PHP Fatal error: Declaration of Doctrine\Common\Reflection\StaticReflectionMethod::invoke($object, $parameter = null) must be compatible with ReflectionMethod::invoke(?object $object, mixed ...$args)

@Firehed commented on GitHub (Oct 5, 2020): `StaticReflectionMethod` is similarly affected: `PHP Fatal error: Declaration of Doctrine\Common\Reflection\StaticReflectionMethod::invoke($object, $parameter = null) must be compatible with ReflectionMethod::invoke(?object $object, mixed ...$args)`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/reflection#10