You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a narrative description of what you are trying to accomplish:
[Y ] Is this related to quality assurance?
Return type of \Zend\Code\Generator\FileGenerator::getClass only has ClassGenerator while it can also return false when the classes array is empty.
PHPStan will whine about this, because it should always return a true-thy return, also it gives the perception it will always return the ClassGenerator (while it doesn't always do that)
Therefor I added the false to the return type in the docblock.
Provide a narrative description of what you are trying to accomplish:
Return type of
\Zend\Code\Generator\FileGenerator::getClass
only hasClassGenerator
while it can also return false when the classes array is empty.PHPStan will whine about this, because it should always return a true-thy return, also it gives the perception it will always return the ClassGenerator (while it doesn't always do that)
Therefor I added the false to the return type in the docblock.
Originally posted by @janvernieuwe at zendframework/zend-code#177
The text was updated successfully, but these errors were encountered: