Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

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

Closed
iVegas opened this issue Jul 2, 2020 · 3 comments

Comments

@iVegas
Copy link

iVegas commented 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

@alexpott
Copy link
Contributor

alexpott commented Jul 3, 2020

This should be addressed by #43

@greg0ire
Copy link
Member

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

@Firehed
Copy link

Firehed commented 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)

@andypost andypost mentioned this issue Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants