Skip to content

General: Add types and update tests #59

General: Add types and update tests

General: Add types and update tests #59

Triggered via pull request July 18, 2024 08:24
Status Failure
Total duration 1m 21s
Artifacts

php-tests.yml

on: pull_request
php-tests  /  ...  /  Generate matrix for phpunit
0s
php-tests / phpunit / Generate matrix for phpunit
php-tests  /  ...  /  PHPCS
13s
php-tests / phpcs / PHPCS
php-tests  /  ...  /  PHPStan
33s
php-tests / phpstan / PHPStan
Matrix: php-tests / phpunit / phpunit
Fit to window
Zoom out
Zoom in

Annotations

8 errors
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L70
Property Lunr\Core\Configuration::$config (array<int|string, mixed>) does not accept array|bool|float|int|Lunr\Core\Configuration|string.
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L142
Property Lunr\Core\Configuration::$config (array<int|string, mixed>) does not accept array|bool|float|int|Lunr\Core\Configuration|string.
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L153
Method Lunr\Core\Configuration::convert_array_to_class() never returns bool so it can be removed from the return type.
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L153
Method Lunr\Core\Configuration::convert_array_to_class() never returns float so it can be removed from the return type.
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L153
Method Lunr\Core\Configuration::convert_array_to_class() never returns int so it can be removed from the return type.
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L153
Method Lunr\Core\Configuration::convert_array_to_class() never returns string so it can be removed from the return type.
php-tests / phpstan / PHPStan: src/Lunr/Core/Configuration.php#L153
Method Lunr\Core\Configuration::convert_array_to_class() return type has no value type specified in iterable type array.
php-tests / phpstan / PHPStan
Process completed with exit code 1.