-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
remove $self = $this; use ($self) in 5.4 #6
remove $self = $this; use ($self) in 5.4 #6
Conversation
if ($instance instanceof ServiceLocatorAwareInterface) { | ||
$instance->setServiceLocator($self); | ||
$instance->setServiceLocator($this); |
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 makes test error,
1) ZendTest\ServiceManager\AbstractPluginManagerTest::testValidatePluginIsCalledWithDelegatorFactoryIfItsAService
Undefined variable: serviceManager
maybe rollback it ?
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.
oh, its strange, seems not related with it...
@@ -605,12 +605,10 @@ public function create($name) | |||
*/ | |||
private function createDelegatorCallback($delegatorFactory, $rName, $cName, $creationCallback) | |||
{ | |||
$serviceManager = $this; |
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.
Careful with the delegators: they're messy ;-)
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.
I made a rollback change on samsonasik@68a626a , and in my local the test is pass now.
@Ocramius yay, travis is green now ;) |
@samsonasik merging, thanks! |
remove $self = $this; use ($self) in 5.4
ping @carnage I created a PR for your suggestion.