CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

Fix usage of static variables

Open jamieburchell opened this issue 1 year ago • 0 comments
trafficstars

Fixes problematic use of static variables in inherited methods in PHP >= 8.1

See:

  • https://www.php.net/manual/en/migration81.incompatible.php
  • https://github.com/bcit-ci/CodeIgniter/pull/6173#issuecomment-2113501165
  • https://github.com/codeigniter4/CodeIgniter4/pull/5262/files

Notes:

  • There is a mixture of "char" and "chr" naming conventions so I just chose one.
  • There are other instances where static variables are used in database classes but I do not know if these are problematic. I think not if they are introduced in what are essentially final classes, but I have not tested or verified.

jamieburchell avatar May 16 '24 08:05 jamieburchell