Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.8from
kylekatarnls:allow-non-string-return-date-macro
Apr 8, 2019
Merged

taylorotwell merged 1 commit into
laravel:5.8from
kylekatarnls:allow-non-string-return-date-macro

Conversation

@kylekatarnls

Copy link
Copy Markdown
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
salmanarshad321 pushed a commit to salmanarshad321/framework that referenced this pull request Sep 23, 2026
…eturn-date-macro

[5.8] Allow to call macros directly on Date
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