Skip to content

fix: convert DateTimeInterface objects to strings in Entity::toRawArray #15209

fix: convert DateTimeInterface objects to strings in Entity::toRawArray

fix: convert DateTimeInterface objects to strings in Entity::toRawArray #15209

Triggered via pull request July 10, 2026 20:05
Status Failure
Total duration 26s
Artifacts

test-phpstan.yml

on: pull_request
PHP Static Analysis
22s
PHP Static Analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHP Static Analysis: tests/system/ControllerTest.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\HTTP\\Response constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/ControllerTest.php was not matched in reported errors.
PHP Static Analysis: tests/system/Config/ServicesTest.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\Test\\Mock\\MockResponse constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/Config/ServicesTest.php was not matched in reported errors.
PHP Static Analysis: tests/system/CommonFunctionsTest.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\HTTP\\RedirectResponse constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/CommonFunctionsTest.php was not matched in reported errors.
PHP Static Analysis: tests/system/Cache/ResponseCacheTest.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\HTTP\\Response constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/Cache/ResponseCacheTest.php was not matched in reported errors.
PHP Static Analysis: tests/system/API/ResponseTraitTest.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\Test\\Mock\\MockResponse constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/API/ResponseTraitTest.php was not matched in reported errors.
PHP Static Analysis: system/HTTP/DownloadResponse.php#L0
Ignored error pattern #^Parameter \#1 \$config of method CodeIgniter\\HTTP\\Response\:\:__construct\(\) expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/system/HTTP/DownloadResponse.php was not matched in reported errors.
PHP Static Analysis: system/HTTP/CURLRequest.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\HTTP\\Response constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/system/HTTP/CURLRequest.php was not matched in reported errors.
PHP Static Analysis: system/Entity/Entity.php#L238
Cannot cast DateTimeInterface to string.
PHP Static Analysis: system/Config/Services.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\HTTP\\Response constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/system/Config/Services.php was not matched in reported errors.
PHP Static Analysis: system/Config/Services.php#L0
Ignored error pattern #^Parameter \#1 \$config of class CodeIgniter\\HTTP\\RedirectResponse constructor expects CodeIgniter\\HTTP\\App, Config\\App given\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/system/Config/Services.php was not matched in reported errors.