You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
I just tried latest CodeIgniter 4.5.6 in my module, and in php 8.4, it cause error:
Runtime: PHP 8.4.2 with Xdebug 3.5.0-dev
Configuration: /home/runner/work/ci4-album/ci4-album/phpunit.xml.dist
PHP Fatal error: Declaration of CodeIgniter\I18n\TimeTrait::createFromTimestamp(int $timestamp, $timezone = null, ?string $locale = null) must be compatible with DateTimeImmutable::createFromTimestamp(int|float $timestamp): static in /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/I18n/TimeTrait.php on line 268
PHP Fatal error: Uncaught Error: Class "CodeIgniter\I18n\Time" not found in /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/HTTP/ResponseTrait.php:398
Stack trace:
#0 /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/HTTP/ResponseTrait.php(376): CodeIgniter\HTTP\Response->sendHeaders()
#1 /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/Debug/ExceptionHandler.php(83): CodeIgniter\HTTP\Response->send()
#2 /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/Debug/Exceptions.php(162): CodeIgniter\Debug\ExceptionHandler->handle()
#3 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler()
#4 {main}
thrown in /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/HTTP/ResponseTrait.php on line 398
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Fatal error: Declaration of CodeIgniter\I18n\TimeTrait::createFromTimestamp(int $timestamp, $timezone = null, ?string $locale = null) must be compatible with DateTimeImmutable::createFromTimestamp(int|float $timestamp): static in /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/I18n/TimeTrait.php on line 268
Fatal error: Uncaught Error: Class "CodeIgniter\I18n\Time" not found in /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/HTTP/ResponseTrait.php:398
Stack trace:
#0 /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/HTTP/ResponseTrait.php(376): CodeIgniter\HTTP\Response->sendHeaders()
#1 /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/Debug/ExceptionHandler.php(83): CodeIgniter\HTTP\Response->send()
#2 /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/Debug/Exceptions.php(162): CodeIgniter\Debug\ExceptionHandler->handle()
#3 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler()
#4 {main}
thrown in /home/runner/work/ci4-album/ci4-album/vendor/codeigniter4/framework/system/HTTP/ResponseTrait.php on line 398
PHP Version
8.4
CodeIgniter4 Version
4.5.6
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
I just tried latest CodeIgniter 4.5.6 in my module, and in php 8.4, it cause error:
https://github.com/samsonasik/ci4-album/actions/runs/12532301581/job/34950890792?pr=19
see PR: samsonasik/ci4-album#19
Steps to Reproduce
at github action above.
Expected Output
should not crash.
Anything else?
No response
The text was updated successfully, but these errors were encountered: