向下兼容php 8.2

This commit is contained in:
Chenx221 2024-04-11 15:36:46 +08:00
parent 4260e05ff5
commit 75cac63b9b
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
},
"minimum-stability": "stable",
"require": {
"php": ">=8.3.0",
"php": ">=8.2.0",
"yiisoft/yii2": "~2.0.45",
"yiisoft/yii2-symfonymailer": "~2.0.3",
"sam-it/yii2-mariadb": "^3.1",

View File

@ -20,7 +20,7 @@ use yii\db\ActiveRecord;
*/
class CollectionTasks extends ActiveRecord
{
const string SCENARIO_CREATE = 'create';
const SCENARIO_CREATE = 'create';
/**
* {@inheritdoc}

View File

@ -21,7 +21,7 @@ use yii\db\ActiveRecord;
*/
class Share extends ActiveRecord
{
const string SCENARIO_UPDATE = 'update';
const SCENARIO_UPDATE = 'update'; // PHP8.2 need to remove "string"
/**
* {@inheritdoc}