Skip to content

Modernize codebase for PHP 8.3 compatibility #74

Modernize codebase for PHP 8.3 compatibility

Modernize codebase for PHP 8.3 compatibility #74

Triggered via push May 18, 2025 17:48
Status Failure
Total duration 30s
Artifacts
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 4 warnings
PHPStan (8.4): lib/Tmdb/Factory/AbstractFactory.php#L72
Strict comparison using === between null and array will always evaluate to false.
PHPStan (8.4): lib/Tmdb/Factory/AbstractFactory.php#L67
PHPDoc tag @param for parameter $data with type array|null is not subtype of native type array.
PHPStan (8.4): lib/Tmdb/Event/ResponseEvent.php#L66
Strict comparison using !== between null and Psr\Http\Message\RequestInterface will always evaluate to true.
PHPStan (8.4): lib/Tmdb/Event/ResponseEvent.php#L61
Strict comparison using !== between null and Psr\Http\Message\ResponseInterface will always evaluate to true.
PHPStan (8.4): lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php#L0
Ignored error pattern #^Property Tmdb\\Event\\Listener\\Psr6CachedRequestListener\:\:\$options is never read, only written\.$# in path /home/runner/work/api/api/lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php was not matched in reported errors.
PHPStan (8.4): lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php#L59
Instanceof between Psr\Http\Message\StreamInterface and Psr\Http\Message\StreamInterface will always evaluate to true.
PHPStan (8.4): lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php#L0
Ignored error pattern #^Strict comparison using \!\=\= between null and Psr\\Http\\Message\\StreamInterface will always evaluate to true\.$# in path /home/runner/work/api/api/lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php was not matched in reported errors.
PHPStan (8.4): lib/Tmdb/Api/Genres.php#L35
Strict comparison using !== between null and array will always evaluate to true.
PHPStan (8.4): lib/Tmdb/Api/Authentication.php#L71
Parameter #1 $requestToken of method Tmdb\Api\Authentication::validateRequestTokenWithLogin() expects string, Tmdb\Token\Session\RequestToken given.
PHPStan (8.4): lib/Tmdb/Api/AbstractApi.php#L0
Ignored error pattern #^Unreachable statement \- code above always terminates\.$# in path /home/runner/work/api/api/lib/Tmdb/Api/AbstractApi.php was not matched in reported errors.
PHPStan (8.3): lib/Tmdb/Factory/AbstractFactory.php#L72
Strict comparison using === between null and array will always evaluate to false.
PHPStan (8.3): lib/Tmdb/Factory/AbstractFactory.php#L67
PHPDoc tag @param for parameter $data with type array|null is not subtype of native type array.
PHPStan (8.3): lib/Tmdb/Event/ResponseEvent.php#L66
Strict comparison using !== between null and Psr\Http\Message\RequestInterface will always evaluate to true.
PHPStan (8.3): lib/Tmdb/Event/ResponseEvent.php#L61
Strict comparison using !== between null and Psr\Http\Message\ResponseInterface will always evaluate to true.
PHPStan (8.3): lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php#L0
Ignored error pattern #^Property Tmdb\\Event\\Listener\\Psr6CachedRequestListener\:\:\$options is never read, only written\.$# in path /home/runner/work/api/api/lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php was not matched in reported errors.
PHPStan (8.3): lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php#L59
Instanceof between Psr\Http\Message\StreamInterface and Psr\Http\Message\StreamInterface will always evaluate to true.
PHPStan (8.3): lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php#L0
Ignored error pattern #^Strict comparison using \!\=\= between null and Psr\\Http\\Message\\StreamInterface will always evaluate to true\.$# in path /home/runner/work/api/api/lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php was not matched in reported errors.
PHPStan (8.3): lib/Tmdb/Api/Genres.php#L35
Strict comparison using !== between null and array will always evaluate to true.
PHPStan (8.3): lib/Tmdb/Api/Authentication.php#L71
Parameter #1 $requestToken of method Tmdb\Api\Authentication::validateRequestTokenWithLogin() expects string, Tmdb\Token\Session\RequestToken given.
PHPStan (8.3): lib/Tmdb/Api/AbstractApi.php#L0
Ignored error pattern #^Unreachable statement \- code above always terminates\.$# in path /home/runner/work/api/api/lib/Tmdb/Api/AbstractApi.php was not matched in reported errors.
PHPStan (8.3)
The strategy configuration was canceled because "static-analysis-phpstan._8_4" failed
PHPStan (8.4)
Unexpected input(s) 'php_version', valid inputs are ['dependency-versions', 'composer-options', 'working-directory', 'ignore-cache', 'custom-cache-key', 'custom-cache-suffix', 'require-lock-file']
PHPStan (8.4)
Unexpected input(s) 'php_version', valid inputs are ['dependency-versions', 'composer-options', 'working-directory', 'ignore-cache', 'custom-cache-key', 'custom-cache-suffix', 'require-lock-file']
PHPStan (8.3)
Unexpected input(s) 'php_version', valid inputs are ['dependency-versions', 'composer-options', 'working-directory', 'ignore-cache', 'custom-cache-key', 'custom-cache-suffix', 'require-lock-file']
PHPStan (8.3)
Unexpected input(s) 'php_version', valid inputs are ['dependency-versions', 'composer-options', 'working-directory', 'ignore-cache', 'custom-cache-key', 'custom-cache-suffix', 'require-lock-file']