General: Add types and update tests #59
php-tests.yml
on: pull_request
php-tests
/
...
/
Generate matrix for phpunit
0s
php-tests
/
...
/
PHPCS
13s
php-tests
/
...
/
PHPStan
33s
Matrix: php-tests / phpunit / phpunit
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.
|