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

Remove static variables for PHP 8.1 #5262

Merged
merged 6 commits into from
Oct 31, 2021

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Oct 31, 2021

Description

See "Usage of static Variables in Inherited Methods"
https://www.php.net/manual/en/migration81.incompatible.php

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

It makes escape chars wrong on PHP 8.1.
See
Usage of static Variables in Inherited Methods
https://www.php.net/manual/en/migration81.incompatible.php
To prevent inappropriate behavior when inheriting by using the values of the parent class on PHP 8.1.

Usage of static Variables in Inherited Methods
https://www.php.net/manual/en/migration81.incompatible.php
@kenjis kenjis mentioned this pull request Oct 31, 2021
15 tasks
system/Database/BaseBuilder.php Outdated Show resolved Hide resolved
system/Database/BaseBuilder.php Outdated Show resolved Hide resolved
system/Database/BaseBuilder.php Outdated Show resolved Hide resolved
system/Database/BaseBuilder.php Outdated Show resolved Hide resolved
system/Database/BaseBuilder.php Outdated Show resolved Hide resolved
@paulbalandan paulbalandan merged commit 4034dc4 into codeigniter4:develop Oct 31, 2021
@kenjis kenjis deleted the remove-static-for-php81 branch October 31, 2021 11:31
@MGatner
Copy link
Member

MGatner commented Oct 31, 2021

Glad to see these go. Inline static variables in classes weird me out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants