Closed jakublabno closed 7 months ago
Library generates non-nullable return type for nullable return methods #482 Library version 3.0.0
For below method proxy is generating non-null return
/** * @AopAnnotation() * @return null|int */ public function getSomeRandomValueAllowOnNull(): ?int { return random_int(0, 666); }
result:
/** * @AopAnnotation() * @return null|int */ public function getSomeRandomValueAllowOnNull() : int { return self::$__joinPoints['method:getSomeRandomValueAllowOnNull']->__invoke($this); }
A new inspection was created.
Thanks!
Library generates non-nullable return type for nullable return methods #482 Library version 3.0.0
For below method proxy is generating non-null return
result: