Skip to content

Html: improved type hints [Closes nette/nette#1570] #685

Html: improved type hints [Closes nette/nette#1570]

Html: improved type hints [Closes nette/nette#1570] #685

Triggered via push December 1, 2025 17:44
Status Success
Total duration 30s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: src/Utils/Image.php#L93
PHPDoc tag `@method` for method Nette\Utils\Image::scale() parameter #3 $mode default value contains unresolvable type.
PHPStan: src/Utils/Image.php#L93
PHPDoc tag `@method` for method Nette\Utils\Image::cropAuto() parameter #1 $mode default value contains unresolvable type.
PHPStan: src/Utils/Html.php#L767
Call to function is_array() with array<string, mixed> will always evaluate to true.
PHPStan: src/Utils/Finder.php#L280
Binary operation "*=" between non-empty-string and 1|1000.0|1000000.0|1000000000.0 results in an error.
PHPStan: src/Utils/ArrayList.php#L117
Call to function is_int() with int will always evaluate to true.
PHPStan: src/Utils/ArrayList.php#L106
Call to function is_int() with int will always evaluate to true.
PHPStan: src/Utils/ArrayList.php#L92
Call to function is_int() with int will always evaluate to true.
PHPStan: src/Utils/ArrayList.php#L75
Call to function is_int() with int will always evaluate to true.
PHPStan: src/Utils/ArrayList.php#L33
Call to static method Nette\Utils\Arrays::isList() with list<T> will always evaluate to true.
PHPStan: src/Utils/ArrayHash.php#L69
Call to function is_scalar() with (int|string) will always evaluate to true.