Closed AdeAttwood closed 3 years ago
Psalm will now know the type of magic properties via the getters and getters on a class that extends BaseObject.
BaseObject
function getTest(): int {}
This snippet will new resolve the property test to be the type of int
test
int
/** @return ActiveQuery<Test> */ function getTest(): ActiveQuery {}
Also active query classes are resolved to there template type. The above snippet will resolve a property test to be the class type Test
Test
Psalm will now know the type of magic properties via the getters and getters on a class that extends
BaseObject
.This snippet will new resolve the property
test
to be the type ofint
Also active query classes are resolved to there template type. The above snippet will resolve a property
test
to be the class typeTest