Skip to content

Commit 6b56f9f

Browse files
committed
PHP 8.2 support for dynamics properties, improve table class
* Adding PHP 8.2 support by using AllowDynamicProps tag comment thanks to @diazvictor * backported for CI2 from https://gitlab.com/codeigniterpower/codeigniterpower/commit/0e109f6eb4ff38167849cef9544a11657cc908a2
1 parent dc17699 commit 6b56f9f

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

appsys/core/Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* @author ExpressionEngine Dev Team
2828
* @link http://codeigniter.com/user_guide/general/controllers.html
2929
*/
30+
#[AllowDynamicProperties]
3031
class CI_Controller {
3132

3233
private static $instance;

appsys/core/Loader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @category Loader
2727
* @link http://codeigniter.com/user_guide/libraries/loader.html
2828
*/
29+
#[AllowDynamicProperties]
2930
class CI_Loader {
3031

3132
// All these are set automatically. Don't mess with them.

appsys/database/DB_driver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* @author ExpressionEngine Dev Team
2929
* @link http://codeigniter.com/user_guide/database/
3030
*/
31+
#[AllowDynamicProperties]
3132
class CI_DB_driver {
3233

3334
var $username;

appsys/libraries/Console.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
License:
1818
MIT
1919
*/
20+
#[AllowDynamicProperties]
2021
class Console {
2122

2223
/*

appsys/libraries/Driver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* @author EllisLab Dev Team
2828
* @link
2929
*/
30+
#[AllowDynamicProperties]
3031
class CI_Driver_Library {
3132

3233
protected $valid_drivers = array();

appsys/libraries/Profiler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @author ExpressionEngine Dev Team
3131
* @link https://codeigniterpower.github.io/codeigniter-profiler/
3232
*/
33+
#[AllowDynamicProperties]
3334
class CI_Profiler extends CI_Loader {
3435

3536
protected $CI;

appsys/libraries/REST.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* @license http://philsturgeon.co.uk/code/dbad-license
1414
* @link http://getsparks.org/packages/restclient/show
1515
*/
16+
#[AllowDynamicProperties]
1617
class REST
1718
{
1819
protected $_ci;

appsys/libraries/REST_Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @version 3.0.0
1515
* hackeD by FeniX, see line 516
1616
*/
17+
#[AllowDynamicProperties]
1718
abstract class REST_Controller extends CI_Controller {
1819
// Note: Only the widely used HTTP status codes are documented
1920

appsys/libraries/Upload.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @author ExpressionEngine Dev Team
2525
* @link http://codeigniter.com/user_guide/libraries/file_uploading.html
2626
*/
27+
#[AllowDynamicProperties]
2728
class CI_Upload {
2829

2930
public $max_size = 0;

0 commit comments

Comments
 (0)