chore: Fix typings and update psalm baseline

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-02-15 13:29:26 +01:00
parent 997e479a69
commit 2ffecd81d4
4 changed files with 52 additions and 38 deletions

View File

@@ -127,7 +127,7 @@ class RelationalEntity extends Entity implements \JsonSerializable {
}
}
public function __call($methodName, $args) {
public function __call(string $methodName, array $args) {
$attr = lcfirst(substr($methodName, 7));
if (array_key_exists($attr, $this->_resolvedProperties) && strpos($methodName, 'resolve') === 0) {
if ($this->_resolvedProperties[$attr] !== null) {