Upgrade PHP to 7.3 and fix some related code errors. Disable self_accessor fixer for PHP-CS-Fixer

This commit is contained in:
ErickSkrauch committed 2019-04-06 04:15:23 +02:00
1 parent 07546bc7e9
commit e13b6f0d94
10 files changed
+38 -219

No files matched your search

+3 -1
View File
@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
namespace api\components\User;
use common\models\Account;
@@ -12,7 +14,7 @@ interface IdentityInterface extends \yii\web\IdentityInterface {
* @throws \yii\web\UnauthorizedHttpException
* @return IdentityInterface
*/
public static function findIdentityByAccessToken($token, $type = null): self;
public static function findIdentityByAccessToken($token, $type = null): IdentityInterface;
/**
* Этот метод используется для получения токена, к которому привязаны права.
-7
View File
@@ -1,16 +1,9 @@
<?php
return [
'bootstrap' => ['debug'],
'components' => [
'reCaptcha' => [
'public' => '6LfwqCYTAAAAAJlaJpqCdzESCjAXUC81Ca6jBHR7',
'secret' => '6LfwqCYTAAAAAFPjHmgwmnjSMFeAOJh7Lk5xxDMC',
],
],
'modules' => [
'debug' => [
'class' => yii\debug\Module::class,
'allowedIPs' => ['*'],
],
],
];
-9
View File
@@ -1,9 +0,0 @@
<?php
return [
'components' => [
'reCaptcha' => [
'public' => getenv('RECAPTCHA_PUBLIC'),
'secret' => getenv('RECAPTCHA_SECRET'),
],
],
];
+2
View File
@@ -67,6 +67,8 @@ return [
],
'reCaptcha' => [
'class' => api\components\ReCaptcha\Component::class,
'public' => getenv('RECAPTCHA_PUBLIC'),
'secret' => getenv('RECAPTCHA_SECRET'),
],
'response' => [
'format' => yii\web\Response::FORMAT_JSON,