Skip to content

Implemented ReflectionMethod::getClosure()#354

Merged
Ocramius merged 1 commit intoRoave:masterfrom
kukulich:get-closure
Sep 4, 2017
Merged

Implemented ReflectionMethod::getClosure()#354
Ocramius merged 1 commit intoRoave:masterfrom
kukulich:get-closure

Conversation

@kukulich
Copy link
Copy Markdown
Collaborator

@kukulich kukulich commented Sep 4, 2017

No description provided.

@Ocramius Ocramius self-assigned this Sep 4, 2017
@Ocramius Ocramius added this to the 2.0.0 milestone Sep 4, 2017
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Ocramius commented Sep 4, 2017

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

@kukulich
Copy link
Copy Markdown
Collaborator Author

kukulich commented Sep 4, 2017

@Ocramius No problem, done :)

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