Idiomatic way of specifying mixed return type

[MAILPOET-4191]
This commit is contained in:
John Oleksowicz
2022-04-11 13:15:35 -05:00
committed by Veljko V
parent c5065c0d8d
commit cbabaf9e4e

View File

@@ -54,7 +54,9 @@ class Field {
return $this->factory;
}
// @phpstan-ignore-next-line - there is no consistent return type
/**
* @return mixed
*/
public function getValue() {
return $this->getFactory()();
}