Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone
2025-02-08 13:57:32 -07:00
parent 8bea6067cd
commit b41dc2b2eb
550 changed files with 15270 additions and 14627 deletions

View File

@ -28,9 +28,9 @@ class Events_Schema extends Schema {
* @access public
* @var array
*/
public $columns = array(
public $columns = [
array(
[
'name' => 'id',
'type' => 'bigint',
'length' => '20',
@ -38,62 +38,62 @@ class Events_Schema extends Schema {
'extra' => 'auto_increment',
'primary' => true,
'sortable' => true,
),
],
array(
[
'name' => 'severity',
'type' => 'tinyint',
'length' => '1',
'unsigned' => true,
'sortable' => true,
),
],
array(
[
'name' => 'initiator',
'type' => 'enum(\'system\', \'manual\')',
'default' => 'none',
),
],
array(
[
'name' => 'author_id',
'type' => 'bigint',
'length' => '20',
'unsigned' => true,
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'object_type',
'type' => 'varchar',
'length' => 20,
'default' => 'network',
'sortable' => true,
'searchable' => true,
),
],
array(
[
'name' => 'object_id',
'type' => 'bigint',
'length' => '20',
'unsigned' => true,
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'slug',
'type' => 'longtext',
'default' => '',
),
],
array(
[
'name' => 'payload',
'type' => 'longtext',
'default' => '',
),
],
array(
[
'name' => 'date_created',
'type' => 'datetime',
'default' => null,
@ -101,7 +101,7 @@ class Events_Schema extends Schema {
'date_query' => true,
'sortable' => true,
'allow_null' => true,
),
],
);
];
}