Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Aug 21, 2024

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
@kenjis kenjis 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
@kenjis kenjis mentioned this pull request Aug 21, 2024
15 tasks
@kenjis
Copy link
Member Author

kenjis commented Aug 21, 2024

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
Member Author

kenjis commented Aug 26, 2024

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

@kenjis kenjis closed this Aug 26, 2024
@kenjis kenjis deleted the fix-Time-createFromTimestamp-api branch August 26, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Pull requests that may break existing functionalities bug Verified 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