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 callable type hints where callback type has been used #190

Merged
merged 1 commit into from
Dec 27, 2017
Merged

Fixed callable type hints where callback type has been used #190

merged 1 commit into from
Dec 27, 2017

Conversation

acelaya
Copy link

@acelaya acelaya commented Dec 27, 2017

There are two phpdoc-level type hints where "callback" has been used instead of "callable".

This makes static code analyzers fail (like phpstan) with an error like this: "Parameter #2 $callback of method League\Plates\Engine::registerFunction() expects League\Plates\callback...".

This PR fixes those typos in order to prevent that.

@ragboyjr ragboyjr merged commit c3dd6e2 into thephpleague:master Dec 27, 2017
@ragboyjr
Copy link
Contributor

Thanks! Looks great

@acelaya
Copy link
Author

acelaya commented Dec 27, 2017

Glad to help, even with a controbution as small as this one :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants