From 080d8e0fa4cad63ec1071ec0f94b84296e79b95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 5 Feb 2024 01:33:19 +0100 Subject: [PATCH] fix phpstan (#27989) * fix phpstan * Update UserRightsToFunction.php --------- Co-authored-by: Laurent Destailleur --- dev/tools/rector/src/Renaming/UserRightsToFunction.php | 5 +++-- htdocs/core/class/CSMSFile.class.php | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dev/tools/rector/src/Renaming/UserRightsToFunction.php b/dev/tools/rector/src/Renaming/UserRightsToFunction.php index f1889b24f26..995cd843f33 100644 --- a/dev/tools/rector/src/Renaming/UserRightsToFunction.php +++ b/dev/tools/rector/src/Renaming/UserRightsToFunction.php @@ -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; diff --git a/htdocs/core/class/CSMSFile.class.php b/htdocs/core/class/CSMSFile.class.php index 848c0038cea..d0b478556c6 100644 --- a/htdocs/core/class/CSMSFile.class.php +++ b/htdocs/core/class/CSMSFile.class.php @@ -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;