-
-
Notifications
You must be signed in to change notification settings - Fork 39
PHPStorm (Meta) Issues
Mark Sch edited this page Sep 28, 2017
·
6 revisions
Maybe those will be solved soon...
// behaviors() = BehaviorRegistry class (extending ObjectRegistry which has that method)
$foo = $this->behaviors()->get('Foo');
// returns mixed instead of \App\Model\Behavior\Foo
I would expect the meta file to be valid, as extension allows us to use the parent's "get" method.
Here is the non-working meta file:
override(
\Cake\ORM\BehaviorRegistry::get(0),
map([
'Search' => \Search\Model\Behavior\SearchBehavior::class,
])
);
PS: Property access works because of the CodeCompletion file:
$foo = $this->behaviors()->Foo;
// Correct return type