| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| if (property_exists($this, $property)) { | ||
| $this->{$property} = $di->instantiate($actor); | ||
| } |
There was a problem hiding this comment.
@TavoNiievez This check breaks some tests in one of my own projects if I try to access $this->tester. Error message: Undefined property: xxxTest::$tester
The test works fine if I remove the if clause and just call $this->{$property} = $di->instantiate($actor);
Sorry, something went wrong.
There was a problem hiding this comment.
@W0rma Sounds like you're right. Could you open a PR with something like this:
$di = $this->getMetadata()->getService('di');
if (($actor = $this->getMetadata()->getCurrent('actor')) &&
($property = lcfirst((string) Configuration::config()['actor_suffix']))) {
$this->{$property} = $di->instantiate($actor);
}?
Sorry, something went wrong.
There was a problem hiding this comment.
@TavoNiievez See #6856
The change fixes the tests of my own project.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.