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.
Originally posted by @janvernieuwe at zendframework/zend-code#177
Provide a narrative description of what you are trying to accomplish:
Return type of
\Zend\Code\Generator\FileGenerator::getClassonly hasClassGeneratorwhile 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