向下兼容php 8.2
This commit is contained in:
parent
4260e05ff5
commit
75cac63b9b
@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.3.0",
|
"php": ">=8.2.0",
|
||||||
"yiisoft/yii2": "~2.0.45",
|
"yiisoft/yii2": "~2.0.45",
|
||||||
"yiisoft/yii2-symfonymailer": "~2.0.3",
|
"yiisoft/yii2-symfonymailer": "~2.0.3",
|
||||||
"sam-it/yii2-mariadb": "^3.1",
|
"sam-it/yii2-mariadb": "^3.1",
|
||||||
|
@ -20,7 +20,7 @@ use yii\db\ActiveRecord;
|
|||||||
*/
|
*/
|
||||||
class CollectionTasks extends ActiveRecord
|
class CollectionTasks extends ActiveRecord
|
||||||
{
|
{
|
||||||
const string SCENARIO_CREATE = 'create';
|
const SCENARIO_CREATE = 'create';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -21,7 +21,7 @@ use yii\db\ActiveRecord;
|
|||||||
*/
|
*/
|
||||||
class Share extends ActiveRecord
|
class Share extends ActiveRecord
|
||||||
{
|
{
|
||||||
const string SCENARIO_UPDATE = 'update';
|
const SCENARIO_UPDATE = 'update'; // PHP8.2 need to remove "string"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Loading…
Reference in New Issue
Block a user