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

[PHP 8.3] refactor: ReflectionProperty::setValue() signature deprecation #7911

Merged

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Sep 8, 2023

Description
See #7850

  • update deprecated code in PHP 8.3

E.g.,

 1) CodeIgniter\CLI\CLITest::testWindow
ErrorException: Calling ReflectionProperty::setValue() with a single argument is deprecated

/home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/CLI/CLITest.php:441

See https://github.com/codeigniter4/CodeIgniter4/actions/runs/6035726283/job/16376653028?pr=7886

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

Calling ReflectionProperty::setValue() with a 1st argument which is not null or an object is deprecated
@kenjis kenjis mentioned this pull request Aug 31, 2023
6 tasks
@kenjis kenjis changed the title refactor: ReflectionProperty::setValue() signature deprecation in PHP 8.3 [PHP 8.3] refactor: ReflectionProperty::setValue() signature deprecation Sep 8, 2023
@kenjis kenjis added the refactor Pull requests that refactor code label Sep 8, 2023
@samsonasik samsonasik merged commit b38cec4 into codeigniter4:develop Sep 8, 2023
51 checks passed
@samsonasik
Copy link
Member

Thank you @kenjis

@kenjis kenjis deleted the fix-ReflectionHelper-setValue branch September 8, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Pull requests that refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants