Skip to content

fix: TimeTrait::createFromTimestamp() method signature for PHP 8.4 - #9134

Closed
kenjis wants to merge 5 commits into
codeigniter4:developfrom
kenjis:fix-Time-createFromTimestamp-api
Closed

fix: TimeTrait::createFromTimestamp() method signature for PHP 8.4#9134
kenjis wants to merge 5 commits into
codeigniter4:developfrom
kenjis:fix-Time-createFromTimestamp-api

Conversation

@kenjis

@kenjiskenjis commented Aug 21, 2024

Copy link
Copy Markdown
Member

Description
See #9116
Related #9105

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/CodeIgniter4/CodeIgniter4/system/I18n/TimeTrait.php on line 268
https://github.com/codeigniter4/CodeIgniter4/actions/runs/10481860628/job/29032020981?pr=9133

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

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/CodeIgniter4/CodeIgniter4/system/I18n/TimeTrait.php on line 268
@kenjiskenjis added bug Verified issues on the current code behavior or pull requests that will fix them breaking change Pull requests that may break existing functionalities labels Aug 21, 2024
@kenjiskenjis mentioned this pull request Aug 21, 2024
16 tasks
@kenjis

Copy link
Copy Markdown
MemberAuthor

If we don't support PHP 8.4 in v4.5.x, we don't need this PR.

@kenjis
kenjis marked this pull request as draft August 21, 2024 08:23
@kenjis

Copy link
Copy Markdown
MemberAuthor

We do not support PHP 8.4 in v4.5.x.

@kenjiskenjis closed this Aug 26, 2024
@kenjis
kenjis deleted the fix-Time-createFromTimestamp-api branch August 26, 2024 23:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changePull requests that may break existing functionalitiesbugVerified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@kenjis