-
-
Notifications
You must be signed in to change notification settings - Fork 87
Closed as not planned
Description
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::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
Metadata
Metadata
Assignees
Labels
No labels