Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ReflectionClass::getReflectionConstant() in adapter for non-existent constant #629

Merged
merged 1 commit into from
May 31, 2020

Conversation

kukulich
Copy link
Collaborator

Fixes #625

);
$betterReflectionConstant = $this->betterReflectionClass->getReflectionConstant($name);
if ($betterReflectionConstant === null) {
return false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP has such a consistent library! 🤣

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Ocramius Ocramius added this to the 4.4.0 milestone May 31, 2020
@Ocramius Ocramius added the bug label May 31, 2020
@Ocramius Ocramius self-assigned this May 31, 2020
@Ocramius Ocramius merged commit 87d1857 into Roave:master May 31, 2020
@kukulich kukulich deleted the adapter branch June 1, 2020 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapter ReflectionClass::getReflectionConstant returns null but should return false
2 participants