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.3] Directly use getTimestamp() #15549

Merged
merged 1 commit into from
Sep 22, 2016
Merged

[5.3] Directly use getTimestamp() #15549

merged 1 commit into from
Sep 22, 2016

Conversation

lucasmichot
Copy link
Contributor

@lucasmichot lucasmichot commented Sep 21, 2016

Each time we access \Carbon\Carbon::$timestamp, we are in fact calling the magic \Carbon\Carbon::__get function: https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Carbon.php#L607-L660

This PR gets rid of this useless intermediary call.


Related to #15544 / Ping @themsaid

@taylorotwell taylorotwell merged commit 70bf117 into laravel:5.3 Sep 22, 2016
@lucasmichot lucasmichot deleted the feature/5.3/getTimestamp branch September 22, 2016 15:06
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