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

[5.8] Allow to call macros directly on Date #28129

Merged

Conversation

kylekatarnls
Copy link
Contributor

The following modification on DateFactory.php avoid the test below to throw an exception: allows macros that can be called statically and that return values that are note dates to be called directly on the Date facade.

@kylekatarnls kylekatarnls changed the title Allow to call macros directly on Date [5.8] Allow to call macros directly on Date Apr 6, 2019
@taylorotwell taylorotwell merged commit b699e5e into laravel:5.8 Apr 8, 2019
@kylekatarnls kylekatarnls deleted the allow-non-string-return-date-macro branch April 8, 2019 14:00
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.

2 participants