bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.6k forks source link

php 8.4: Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead #6302

Open tenzap opened 1 month ago

tenzap commented 1 month ago

When running the tests of ci3 with php8.4, I get these deprecation warnings:

PHP Deprecated:  CI_Encryption::encrypt(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in .../system/libraries/Encryption.php on line 372
PHP Deprecated:  CI_Encryption::decrypt(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in .../system/libraries/Encryption.php on line 507
.
Deprecated: CI_Encryption::encrypt(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in .../system/libraries/Encryption.php on line 372

Deprecated: CI_Encryption::decrypt(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in .../system/libraries/Encryption.php on line 507