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

Add missing @throws in ReflectionClass::getProperty() #470

Merged
merged 1 commit into from Dec 24, 2018

Conversation

BenMorel
Copy link
Contributor

Although not properly documented on the php.net website (only in the comments section), ReflectionClass::getProperty() throws a ReflectionException when the property does not exist:

class A {}

(new ReflectionClass('A'))->getProperty('B'); // ReflectionException: Property B does not exist

Demo here.

@andrey-sokolov andrey-sokolov merged commit 9bf10f7 into JetBrains:master Dec 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants