Skip to content

refactor: add declare(strict_types=1) #9195

refactor: add declare(strict_types=1)

refactor: add declare(strict_types=1) #9195

Triggered via pull request October 27, 2023 21:37
Status Failure
Total duration 1m 29s
Artifacts

test-phpstan.yml

on: pull_request
PHP Static Analysis
1m 18s
PHP Static Analysis
Fit to window
Zoom out
Zoom in

Annotations

4 errors
PHP Static Analysis: system/HTTP/ResponseInterface.php#L340
Default value of the parameter #3 $expire (int) of method CodeIgniter\HTTP\ResponseInterface::setCookie() is incompatible with type string.
PHP Static Analysis: system/HTTP/ResponseTrait.php (in context of class CodeIgniter/HTTP/Response)#L569
Parameter #3 $expire (int) of method CodeIgniter\HTTP\Response::setCookie() should be compatible with parameter $expire (string) of method CodeIgniter\HTTP\ResponseInterface::setCookie()
PHP Static Analysis: system/Helpers/cookie_helper.php#L55
Parameter #3 $expire of method CodeIgniter\HTTP\ResponseInterface::setCookie() expects string, int given.
PHP Static Analysis
Process completed with exit code 1.