-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Avoid constructor override #175
Conversation
Ping @malukenho for review :-) |
what a big change! interesting, but the php5.6 dependence should make problem for a lot of people to update PM to the 2.0.0 version |
I really want to move to This change should make ProxyManager 100% LSP-compliant |
. "\n\n"; | ||
|
||
foreach ($originalClass->getProperties() as $originalProperty) { | ||
if ((PHP_VERSION_ID < 50400 || (defined('HHVM_VERSION'))) && $originalProperty->isPrivate()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor performance optimization:
Render (PHP_VERSION_ID < 50400 || (defined('HHVM_VERSION'))
into local variable before foreach
loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP_VERSION_ID < 50400
can be removed anyway since the composer.json file says that php 5.6 is a minimum version now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go away with a rebase: I fixed it by using method_exists('Closure', 'bind')
instead
@blanchonvincent the 5.6 requirement is mainly because |
a302221
to
0a61ffc
Compare
ReflectionClass::newInstanceWithoutConstructor() requires PHP 5.4+, doesn't it? |
Yes, but in 5.4 and 5.5, you can't use it with anything either extending or being an internal php class. PHP 5.6 is much better on that front. |
dee235c
to
b948637
Compare
This is ready for merge, but |
…er to initialize some proxy properties all the time
04fec2e
to
cc610f3
Compare
See #115