fix phpstan (#27989)

* fix phpstan

* Update UserRightsToFunction.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Frédéric FRANCE 2024-02-05 01:33:19 +01:00 committed by GitHub
parent 1da1c473ba
commit 080d8e0fa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -144,8 +144,9 @@ class UserRightsToFunction extends AbstractRector
return $node;
}
$caseok = false; // Will be tru if we can make the replacement. We must not do it for assignment like when $user->right->aaa->bbb = ...
$isInverse = false;
$caseok = false; // Will be true if we can make the replacement. We must not do it for assignment like when $user->right->aaa->bbb = ...
$isInverse = false;
if ($node instanceof Node\Expr\BooleanNot) {
if (!$node->expr instanceof Node\Expr\Empty_) {
return null;

View file

@ -55,7 +55,14 @@ class CSMSFile
*/
public $eol;
/**
* @var string address from
*/
public $addr_from;
/**
* @var string address to
*/
public $addr_to;
public $deferred;
public $priority;