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

Implemented ReflectionMethod::getClosure() #354

Merged
merged 1 commit into from
Sep 4, 2017

Conversation

kukulich
Copy link
Collaborator

@kukulich kukulich commented Sep 4, 2017

No description provided.

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.

Besides exception detail nitpicking, looks good! 👍

private function assertClassExist(string $className) : void
{
if ( ! \class_exists($className, false)) {
throw new ClassDoesNotExist('Method cannot be used as the class is not loaded');
Copy link
Member

Choose a reason for hiding this comment

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

Please add the class name to the exception

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@Ocramius
Copy link
Member

Ocramius commented Sep 4, 2017

Ah, and a rebase will be needed, sorry :-\

@kukulich
Copy link
Collaborator Author

kukulich commented Sep 4, 2017

@Ocramius No problem, done :)

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
Copy link
Member

Ocramius commented Sep 4, 2017

Good to go! 👍

@Ocramius Ocramius merged commit 47ed92c into Roave:master Sep 4, 2017
@kukulich kukulich deleted the get-closure branch September 4, 2017 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants