Skip to content

Improve types

Improve types #143

Triggered via push September 30, 2025 00:12
Status Failure
Total duration 32s
Artifacts
Matrix: Linter
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Linter (8.3, ubuntu-latest): src/Type/Builder/NullTypeBuilder.php#L44
Call to function assert() with true will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/ListTypeBuilder.php#L51
Instanceof between TypeLang\Parser\Node\Stmt\NamedTypeNode and TypeLang\Parser\Node\Stmt\NamedTypeNode will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/ListTypeBuilder.php#L51
Call to function assert() with true will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/IntRangeTypeBuilder.php#L38
Instanceof between TypeLang\Parser\Node\Stmt\NamedTypeNode and TypeLang\Parser\Node\Stmt\NamedTypeNode will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/IntRangeTypeBuilder.php#L38
Call to function assert() with true will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/CallableTypeBuilder.php#L45
Instanceof between TypeLang\Parser\Node\Stmt\NamedTypeNode and TypeLang\Parser\Node\Stmt\NamedTypeNode will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/CallableTypeBuilder.php#L45
Call to function assert() with true will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/ArrayTypeBuilder.php#L58
Instanceof between TypeLang\Parser\Node\Stmt\NamedTypeNode and TypeLang\Parser\Node\Stmt\NamedTypeNode will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Type/Builder/ArrayTypeBuilder.php#L58
Call to function assert() with true will always evaluate to true.
Linter (8.3, ubuntu-latest): src/Runtime/ClassInstantiator/CloneClassInstantiator.php#L21
Method TypeLang\Mapper\Runtime\ClassInstantiator\CloneClassInstantiator::instantiate() should return T of object but returns object.