Skip to content

types::intRange() should return literal if min === max #160

types::intRange() should return literal if min === max

types::intRange() should return literal if min === max #160

Triggered via push February 24, 2024 17:39
Status Failure
Total duration 31s
Artifacts
Matrix: composer-normalize
Matrix: composer-validate
Matrix: php-cs-fixer
Matrix: phpstan
Matrix: psalm
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

21 errors
phpstan (8.3): src/types.php#L236
Method Typhoon\Type\types::intRange() should return Typhoon\Type\Type<int> but returns Typhoon\Type\Type<bool|float|int|string>.
phpstan (8.3): src/types.php#L236
Parameter #1 $value of static method Typhoon\Type\types::literalValue() expects bool|float|int|string, int|null given.
phpstan (8.3): src/types.php#L236
Unable to resolve the template type TValue in call to method static method Typhoon\Type\types::literalValue()
phpstan (8.3)
Process completed with exit code 1.
phpstan (8.1): src/types.php#L236
Method Typhoon\Type\types::intRange() should return Typhoon\Type\Type<int> but returns Typhoon\Type\Type<bool|float|int|string>.
phpstan (8.1): src/types.php#L236
Parameter #1 $value of static method Typhoon\Type\types::literalValue() expects bool|float|int|string, int|null given.
phpstan (8.1): src/types.php#L236
Unable to resolve the template type TValue in call to method static method Typhoon\Type\types::literalValue()
phpstan (8.1)
Process completed with exit code 1.
PossiblyNullArgument: src/types.php#L236
src/types.php:236:39: PossiblyNullArgument: Argument 1 of Typhoon\Type\types::literalValue cannot be null, possibly null value provided (see https://psalm.dev/078)
psalm (8.1)
Process completed with exit code 2.
phpstan (8.2)
The job was canceled because "_8_3" failed.
phpstan (8.2): src/types.php#L236
Method Typhoon\Type\types::intRange() should return Typhoon\Type\Type<int> but returns Typhoon\Type\Type<bool|float|int|string>.
phpstan (8.2): src/types.php#L236
Parameter #1 $value of static method Typhoon\Type\types::literalValue() expects bool|float|int|string, int|null given.
phpstan (8.2): src/types.php#L236
Unable to resolve the template type TValue in call to method static method Typhoon\Type\types::literalValue()
phpstan (8.2)
Process completed with exit code 1.
psalm (8.2)
The job was canceled because "_8_1" failed.
PossiblyNullArgument: src/types.php#L236
src/types.php:236:39: PossiblyNullArgument: Argument 1 of Typhoon\Type\types::literalValue cannot be null, possibly null value provided (see https://psalm.dev/078)
psalm (8.2)
The operation was canceled.
psalm (8.3)
The job was canceled because "_8_1" failed.
PossiblyNullArgument: src/types.php#L236
src/types.php:236:39: PossiblyNullArgument: Argument 1 of Typhoon\Type\types::literalValue cannot be null, possibly null value provided (see https://psalm.dev/078)
psalm (8.3)
The operation was canceled.