Use more specific typehints #583
Annotations
24 errors
PHP 8.1:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.1
Process completed with exit code 1.
|
PHP 8.3:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.3
Process completed with exit code 1.
|
PHP 8.3 --prefer-stable --prefer-lowest:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.3 --prefer-stable --prefer-lowest
Process completed with exit code 1.
|
PHP 8.2 --prefer-stable --prefer-lowest:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.2 --prefer-stable --prefer-lowest
Process completed with exit code 1.
|
PHP 8.4 --prefer-stable --prefer-lowest:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.4 --prefer-stable --prefer-lowest
Process completed with exit code 1.
|
PHP 8.1 --prefer-stable --prefer-lowest:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.1 --prefer-stable --prefer-lowest
Process completed with exit code 1.
|
PHP 7.4 --prefer-stable --prefer-lowest:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 7.4 --prefer-stable --prefer-lowest
Process completed with exit code 1.
|
PHP 8:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8
Process completed with exit code 1.
|
PHP 7.4:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 7.4
Process completed with exit code 1.
|
PHP 8.4:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.4
Process completed with exit code 1.
|
PHP 8.2:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8.2
Process completed with exit code 1.
|
PHP 8 --prefer-stable --prefer-lowest:
src/MessageBus/CommandTypeExtractor.php#L33
Method Nepada\PHPStan\MessageBus\CommandTypeExtractor::extractCommandType() should return class-string|null but returns string.
|
PHP 8 --prefer-stable --prefer-lowest
Process completed with exit code 1.
|