fixed implicit nullable parameter, gh actions dependencies
This commit is contained in:
8
.github/workflows/php.yml
vendored
8
.github/workflows/php.yml
vendored
@ -14,11 +14,11 @@ 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']
|
php-versions: ['8.4','8.3','8.2','8.1', '8.0','7.4']
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10
|
image: mariadb:lts
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
env:
|
env:
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
ini-values: post_max_size=256M, max_execution_time=180
|
ini-values: post_max_size=256M, max_execution_time=180
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
||||||
- name: Verify MariaDB connection
|
- name: Verify MariaDB connection
|
||||||
@ -52,7 +52,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ final class ResetPasswordEvent extends Event
|
|||||||
protected $form;
|
protected $form;
|
||||||
protected $token;
|
protected $token;
|
||||||
|
|
||||||
public function __construct(Token $token = null, RecoveryForm $form = null, array $config = [])
|
public function __construct(?Token $token = null, ?RecoveryForm $form = null, array $config = [])
|
||||||
{
|
{
|
||||||
$this->form = $form;
|
$this->form = $form;
|
||||||
$this->token = $token;
|
$this->token = $token;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ class MailFactory
|
|||||||
* @throws InvalidConfigException
|
* @throws InvalidConfigException
|
||||||
* @return MailService
|
* @return MailService
|
||||||
*/
|
*/
|
||||||
public static function makeRecoveryMailerService($email, Token $token = null)
|
public static function makeRecoveryMailerService($email, ?Token $token = null)
|
||||||
{
|
{
|
||||||
/** @var Module $module */
|
/** @var Module $module */
|
||||||
$module = Yii::$app->getModule('user');
|
$module = Yii::$app->getModule('user');
|
||||||
@ -74,7 +74,7 @@ class MailFactory
|
|||||||
* @throws InvalidConfigException
|
* @throws InvalidConfigException
|
||||||
* @return MailService
|
* @return MailService
|
||||||
*/
|
*/
|
||||||
public static function makeConfirmationMailerService(User $user, Token $token = null)
|
public static function makeConfirmationMailerService(User $user, ?Token $token = null)
|
||||||
{
|
{
|
||||||
/** @var Module $module */
|
/** @var Module $module */
|
||||||
$module = Yii::$app->getModule('user');
|
$module = Yii::$app->getModule('user');
|
||||||
|
|||||||
@ -144,7 +144,7 @@ class Profile extends ActiveRecord
|
|||||||
*
|
*
|
||||||
* @return DateTime
|
* @return DateTime
|
||||||
*/
|
*/
|
||||||
public function getLocalTimeZone(DateTime $dateTime = null)
|
public function getLocalTimeZone(?DateTime $dateTime = null)
|
||||||
{
|
{
|
||||||
return $dateTime === null ? new DateTime() : $dateTime->setTimezone($this->getTimeZone());
|
return $dateTime === null ? new DateTime() : $dateTime->setTimezone($this->getTimeZone());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user