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

PHP 7.2 Compatibility #57

Merged
merged 2 commits into from
Nov 15, 2017
Merged

PHP 7.2 Compatibility #57

merged 2 commits into from
Nov 15, 2017

Conversation

konecnyjakub
Copy link
Contributor

PHP 7.2 does not allow to use Object as class name, any attempt to extend it (Nette\Object here) results in a fatal error. So I used trait Nette\SmartObject instead.
On SmartObject method getReflection is deprecated, so I also changed tests to directly create reflection objects.

@stekycz stekycz merged commit c1242e2 into bileto:master Nov 15, 2017
@stekycz
Copy link
Collaborator

stekycz commented Nov 15, 2017

Thanks!

@konecnyjakub konecnyjakub deleted the php7.2 branch November 15, 2017 10:54
@konecnyjakub
Copy link
Contributor Author

Hm, merging this into master showed that I have forgotten few classes in tests. I will prepare a PR soon.

@stekycz
Copy link
Collaborator

stekycz commented Nov 15, 2017

I fix it in master

@konecnyjakub
Copy link
Contributor Author

Okay, thanks.

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