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 Products_Schema extends Schema {
* @access public
* @var array
*/
public $columns = array(
public $columns = [
array(
[
'name' => 'id',
'type' => 'bigint',
'length' => '20',
@ -38,16 +38,16 @@ class Products_Schema extends Schema {
'extra' => 'auto_increment',
'primary' => true,
'sortable' => true,
),
],
array(
[
'name' => 'slug',
'type' => 'varchar',
'searchable' => true,
'sortable' => true,
),
],
array(
[
'name' => 'parent_id',
'type' => 'bigint',
'length' => '20',
@ -55,72 +55,72 @@ class Products_Schema extends Schema {
'sortable' => true,
'transition' => true,
'allow_null' => true,
),
],
array(
[
'name' => 'migrated_from_id',
'type' => 'bigint',
'length' => '20',
'unsigned' => true,
'sortable' => true,
'allow_null' => true,
),
],
array(
[
'name' => 'name',
'type' => 'varchar',
'searchable' => true,
'sortable' => true,
),
],
array(
[
'name' => 'description',
'type' => 'longtext',
'default' => '',
'searchable' => true,
),
],
array(
[
'name' => 'product_group',
'type' => 'varchar',
'searchable' => true,
'sortable' => true,
'allow_null' => true,
),
],
array(
[
'name' => 'currency',
'type' => 'varchar',
'length' => '10',
'default' => 'USD',
'sortable' => true,
),
],
array(
[
'name' => 'pricing_type',
'type' => 'varchar',
'length' => '10',
'default' => 'paid',
'sortable' => true,
),
],
array(
[
'name' => 'amount',
'type' => 'decimal(13,4)',
'default' => '',
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'setup_fee',
'type' => 'decimal(13,4)',
'default' => '',
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'recurring',
'type' => 'tinyint',
'length' => '4',
@ -128,48 +128,48 @@ class Products_Schema extends Schema {
'default' => 1,
'transition' => true,
'sortable' => true,
),
],
array(
[
'name' => 'trial_duration',
'type' => 'smallint',
'unsigned' => true,
'default' => '0',
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'trial_duration_unit',
'type' => 'enum(\'day\', \'month\', \'week\', \'year\')',
'default' => 'none',
),
],
array(
[
'name' => 'duration',
'type' => 'smallint',
'unsigned' => true,
'default' => '0',
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'duration_unit',
'type' => 'enum(\'day\', \'month\', \'week\', \'year\')',
'default' => 'none',
),
],
array(
[
'name' => 'billing_cycles',
'type' => 'smallint',
'unsigned' => true,
'default' => '0',
'sortable' => true,
'transition' => true,
),
],
array(
[
'name' => 'list_order',
'type' => 'tinyint',
'length' => '4',
@ -177,9 +177,9 @@ class Products_Schema extends Schema {
'default' => 10,
'transition' => true,
'sortable' => true,
),
],
array(
[
'name' => 'active',
'type' => 'tinyint',
'length' => '4',
@ -187,9 +187,9 @@ class Products_Schema extends Schema {
'default' => 1,
'transition' => true,
'sortable' => true,
),
],
array(
[
'name' => 'date_created',
'type' => 'datetime',
'default' => null,
@ -197,9 +197,9 @@ class Products_Schema extends Schema {
'date_query' => true,
'sortable' => true,
'allow_null' => true,
),
],
array(
[
'name' => 'date_modified',
'type' => 'datetime',
'default' => null,
@ -207,14 +207,14 @@ class Products_Schema extends Schema {
'date_query' => true,
'sortable' => true,
'allow_null' => true,
),
],
array(
[
'name' => 'type',
'type' => 'varchar',
'searchable' => true,
'sortable' => true,
),
],
);
];
}