diff --git a/common/models/UseField.php b/common/models/UseField.php index 3980614..e1218e7 100644 --- a/common/models/UseField.php +++ b/common/models/UseField.php @@ -39,7 +39,7 @@ class UseField extends \yii\db\ActiveRecord return [ [['field_id', 'use'], 'required'], [['field_id', 'use'], 'integer'], - [['field_id'], 'exist', 'skipOnError' => true, 'targetClass' => AdditionalFields::className(), 'targetAttribute' => ['field_id' => 'id']], + [['field_id'], 'exist', 'skipOnError' => true, 'targetClass' => AdditionalFields::class, 'targetAttribute' => ['field_id' => 'id']], ]; } diff --git a/composer.json b/composer.json index 2bc3407..5cee905 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ }, "minimum-stability": "stable", "require": { - "php": ">=5.4.0", + "php": ">=7.1.0", "yiisoft/yii2": "~2.0.6", "yiisoft/yii2-bootstrap": "~2.0.0", "yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",