Idiomatic way of specifying mixed return type
[MAILPOET-4191]
This commit is contained in:
committed by
Veljko V
parent
c5065c0d8d
commit
cbabaf9e4e
@@ -54,7 +54,9 @@ class Field {
|
|||||||
return $this->factory;
|
return $this->factory;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @phpstan-ignore-next-line - there is no consistent return type
|
/**
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
public function getValue() {
|
public function getValue() {
|
||||||
return $this->getFactory()();
|
return $this->getFactory()();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user