-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix an issue with inheritance of placeholder registry #3307
Fix an issue with inheritance of placeholder registry #3307
Conversation
…atically with aop inheritance
@lisachenko : i found 48 new self() in other class |
@samsonasik should I replace all of them to |
with php 5.3, i think new static is more usable then new self, . cmiiw |
@samsonasik yes, extending logic of class will be more usable with LSB, especially for Ldap filter, added patch for that. |
nice 👍 |
Thanks, it's my first PR to ZF2 )) P.S. I'm working on AOP for PHP if you could take a look at it, I would be grateful to you )) Demo source code is here https://github.com/lisachenko/zf2-aspect. Here is a snapshot what my library can do with ZF2 demo application https://twitter.com/lisachenko/status/281124645615329280 (no extensions: runkit, aop, etc, no evals, no __call methods, just pure PHP code). |
You're welcome. Great ! ok, forked :) Pada Dec 31, 2012, at 0:51, Alexander Lisachenko notifications@github.com menulis:
|
@@ -39,7 +39,7 @@ class PropertyGenerator extends AbstractMemberGenerator | |||
*/ | |||
public static function fromReflection(PropertyReflection $reflectionProperty) | |||
{ | |||
$property = new self(); | |||
$property = new static(); |
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.
It appears this one may cause an issue -- travis reports a failing test for the PropertyGenerator here.
Actually, I'm having trouble tracking down the issue. Essentially, @lisachenko Can you track it down? |
@weierophinney yeah, looks strange...LSB shouldn't break anything. I'll look into the issue |
LSB is the issue ) Class I'll amend my last commit to be compatible with current logic, however it's better to fix this issue later. Is amending commit is ok for PR? |
Forward port #3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Excellent - thanks! |
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
Forward port zendframework/zendframework#3307 Conflicts: library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php library/Zend/Code/Generator/DocBlock/Tag/ReturnTag.php
This small patch fixes an issue with logic of Registry
getRegistry()
method. Method should usestatic
keyword instead ofself
to allow inheritance.Issue was detected automatically during the tests with aspect-oriented programming in ZF2 https://github.com/lisachenko/zf2-aspect