phpstan: remove <php7.4 from build grid (v1.6)

This commit is contained in:
tonis ormisson
2022-08-10 17:12:10 +03:00
parent fa17922914
commit c856eded75
11 changed files with 20 additions and 21 deletions

View File

@ -11,7 +11,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
operating-system: ['ubuntu-latest'] operating-system: ['ubuntu-latest']
php-versions: ['8.1', '8.0','7.4','7.3', '7.2','7.1','7.0', '5.6'] php-versions: ['8.1', '8.0','7.4']
services: services:
mariadb: mariadb:

View File

@ -78,7 +78,7 @@
}, },
"config": { "config": {
"platform": { "platform": {
"php": "7.3" "php": "7.4"
}, },
"preferred-install": { "preferred-install": {
"*": "auto" "*": "auto"

View File

@ -57,7 +57,7 @@ class UserCreateService implements ServiceInterface
$model->confirmed_at = time(); $model->confirmed_at = time();
$model->password = !empty($model->password) $model->password = !empty($model->password)
? $model->password ? $model->password
: $this->securityHelper->generatePassword(8, $this->getModule('user')->minPasswordRequirements); : $this->securityHelper->generatePassword(8, $this->getModule()->minPasswordRequirements);
/** @var UserEvent $event */ /** @var UserEvent $event */
$event = $this->make(UserEvent::class, [$model]); $event = $this->make(UserEvent::class, [$model]);

View File

@ -51,7 +51,7 @@ class UserRegisterService implements ServiceInterface
try { try {
$model->confirmed_at = $this->getModule()->enableEmailConfirmation ? null : time(); $model->confirmed_at = $this->getModule()->enableEmailConfirmation ? null : time();
$model->password = $this->getModule()->generatePasswords $model->password = $this->getModule()->generatePasswords
? $this->securityHelper->generatePassword(8, $this->getModule('user')->minPasswordRequirements) ? $this->securityHelper->generatePassword(8, $this->getModule()->minPasswordRequirements)
: $model->password; : $model->password;
$event = $this->make(UserEvent::class, [$model]); $event = $this->make(UserEvent::class, [$model]);

View File

@ -12,8 +12,8 @@
use yii\bootstrap\ActiveForm; use yii\bootstrap\ActiveForm;
use yii\helpers\Html; use yii\helpers\Html;
/* @var yii\web\View $this */ /** @var yii\web\View $this */
/* @var Da\User\Model\User $user */ /** @var Da\User\Model\User $user */
?> ?>

View File

@ -11,9 +11,9 @@
use Da\User\Widget\AssignmentsWidget; use Da\User\Widget\AssignmentsWidget;
/* @var yii\web\View $this */ /** @var yii\web\View $this */
/* @var Da\User\Model\User $user */ /** @var Da\User\Model\User $user */
/* @var string[] $params */ /** @var string[] $params */
?> ?>

View File

@ -9,10 +9,9 @@
* the LICENSE file that was distributed with this source code. * the LICENSE file that was distributed with this source code.
*/ */
/** /** @var yii\web\View $this */
* @var yii\web\View /** @var Da\User\Model\User $user */
* @var \Da\User\Model\User $user
*/
?> ?>
<?php $this->beginContent('@Da/User/resources/views/admin/update.php', ['user' => $user]) ?> <?php $this->beginContent('@Da/User/resources/views/admin/update.php', ['user' => $user]) ?>

View File

@ -10,8 +10,8 @@
*/ */
/** /**
* @var yii\widgets\ActiveForm * @var yii\widgets\ActiveForm $form
* @var \Da\User\Model\User $user * @var \Da\User\Model\User $user
*/ */
?> ?>

View File

@ -15,10 +15,10 @@ use yii\web\View;
use yii\widgets\Pjax; use yii\widgets\Pjax;
/** /**
* @var $this yii\web\View * @var yii\web\View $this
* @var $dataProvider yii\data\ActiveDataProvider * @var yii\data\ActiveDataProvider $dataProvider
* @var $searchModel Da\User\Search\UserSearch * @var Da\User\Search\UserSearch $searchModel
* @var $module Da\User\Module * @var Da\User\Module $module
*/ */
$this->title = Yii::t('usuario', 'Manage users'); $this->title = Yii::t('usuario', 'Manage users');

View File

@ -11,7 +11,7 @@
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
use yii\helpers\Html; use yii\helpers\Html;
/* @var $model \Da\User\Form\GdprDeleteForm */ /** @var $model \Da\User\Form\GdprDeleteForm */
?> ?>
<div class="row"> <div class="row">

View File

@ -2,7 +2,7 @@
use yii\helpers\Html; use yii\helpers\Html;
/* @var $module \Da\User\Module */ /** @var $module \Da\User\Module */
$this->title = Yii::t('usuario', 'Privacy settings'); $this->title = Yii::t('usuario', 'Privacy settings');