PHP 8.2 support for dynamics properties, improve table class * Adding PHP 8.2 support by using AllowDynamicProps tag comment thanks to @diazvictor * Adds $uri prop in Router, and AllowDynamicProps attribute for CI_Controller backported https://github.com/gxgpet/CodeIgniter/commit/e9ff2f2329244176c9275022c3cb5b3916123bcc * Adding missing `dest_image` property in CI_Image_lib backported https://github.com/gxgpet/CodeIgniter/commit/d3c610ba85f3d41121b210a6954c72c7b544ea34 * Improve table class
... | ... | @@ -50,6 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); |
50 | 50 | * @author EllisLab Dev Team
|
51 | 51 | * @link https://codeigniter.com/userguide3/general/controllers.html
|
52 | 52 | */
|
53 | +#[AllowDynamicProperties]
|
|
53 | 54 | class CI_Controller {
|
54 | 55 | |
55 | 56 | /**
|
... | ... | @@ -49,6 +49,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); |
49 | 49 | * @author EllisLab Dev Team
|
50 | 50 | * @link https://codeigniter.com/userguide3/libraries/loader.html
|
51 | 51 | */
|
52 | +#[AllowDynamicProperties]
|
|
52 | 53 | class CI_Loader {
|
53 | 54 | |
54 | 55 | // All these are set automatically. Don't mess with them.
|
... | ... | @@ -58,6 +58,13 @@ class CI_Router { |
58 | 58 | */
|
59 | 59 | public $config;
|
60 | 60 | |
61 | + /**
|
|
62 | + * CI_URI class object
|
|
63 | + *
|
|
64 | + * @var object
|
|
65 | + */
|
|
66 | + public $uri;
|
|
67 | + |
|
61 | 68 | /**
|
62 | 69 | * List of routes
|
63 | 70 | *
|
... | ... | @@ -51,6 +51,13 @@ defined('BASEPATH') OR exit('No direct script access allowed'); |
51 | 51 | */
|
52 | 52 | class CI_URI {
|
53 | 53 | |
54 | + /**
|
|
55 | + * CI_Config instance
|
|
56 | + *
|
|
57 | + * @var CI_Config
|
|
58 | + */
|
|
59 | + public $config;
|
|
60 | + |
|
54 | 61 | /**
|
55 | 62 | * List of cached URI segments
|
56 | 63 | *
|
... | ... | @@ -51,6 +51,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); |
51 | 51 | * @author EllisLab Dev Team
|
52 | 52 | * @link https://codeigniter.com/userguide3/database/
|
53 | 53 | */
|
54 | +#[AllowDynamicProperties]
|
|
54 | 55 | abstract class CI_DB_driver {
|
55 | 56 | |
56 | 57 | /**
|
... | ... | @@ -50,6 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); |
50 | 50 | * @author EllisLab Dev Team
|
51 | 51 | * @link
|
52 | 52 | */
|
53 | +#[AllowDynamicProperties]
|
|
53 | 54 | class CI_Driver_Library {
|
54 | 55 | |
55 | 56 | /**
|
... | ... | @@ -85,6 +85,14 @@ class CI_Image_lib { |
85 | 85 | */
|
86 | 86 | public $new_image = '';
|
87 | 87 | |
88 | + |
|
89 | + /**
|
|
90 | + * Path to destination image
|
|
91 | + *
|
|
92 | + * @var string
|
|
93 | + */
|
|
94 | + public $dest_image = '';
|
|
95 | + |
|
88 | 96 | /**
|
89 | 97 | * Image width
|
90 | 98 | *
|
... | ... | @@ -489,12 +489,12 @@ class CI_Table { |
489 | 489 | return;
|
490 | 490 | }
|
491 | 491 | |
492 | - $this->temp = $this->_default_template();
|
|
492 | + $temp = $this->_default_template();
|
|
493 | 493 | foreach (array('table_open', 'thead_open', 'thead_close', 'heading_row_start', 'heading_row_end', 'heading_cell_start', 'heading_cell_end', 'tbody_open', 'tbody_close', 'row_start', 'row_end', 'cell_start', 'cell_end', 'row_alt_start', 'row_alt_end', 'cell_alt_start', 'cell_alt_end', 'table_close') as $val)
|
494 | 494 | {
|
495 | 495 | if ( ! isset($this->template[$val]))
|
496 | 496 | {
|
497 | - $this->template[$val] = $this->temp[$val];
|
|
497 | + $this->template[$val] = $temp[$val];
|
|
498 | 498 | }
|
499 | 499 | }
|
500 | 500 | }
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help