sascha-egerer / phpstan-typo3

TYPO3 CMS class reflection extension for PHPStan & framework-specific rules
MIT License
42 stars 22 forks source link

Fix return type of QueryInterface::execute() #163

Open sascha-egerer opened 5 months ago

sascha-egerer commented 5 months ago

The execute method has a boolean argument that defines if a raw result should be returned. This means that no object mapping is done but an array containing the result values is returned.

It is now also supported to not just pass constant boolean values but a variable containing a boolean to the execute function. In this case it's not clear if a raw result or objects should be returned so we do now return a union type containing both.