Skip to content

Commit

Permalink
QA: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Feb 4, 2025
1 parent d45d2d9 commit 511b320
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
>
<rule ref="./vendor/contributte/qa/ruleset.xml">
<exclude name="Squiz.Commenting.FunctionComment.MissingParamName"/>
<exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable"/>
</rule>

<!-- Package specific rules -->
Expand Down
6 changes: 3 additions & 3 deletions src/Integration/NetteSessionIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public function setup(HubInterface $hub, Event $event, EventHint $hint): ?Event
}

// @see https://github.com/nette/http/blob/v3.1/src/Http/Session.php
// phpcs:ignore SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable
$sessionData = $_SESSION['__NF']['DATA'] ?? [];
/** @var array<string, mixed> $sessionData */
$sessionData = $_SESSION['__NF']['DATA'] ?? []; // @phpstan-ignore-line

/** @var array<mixed, string> $iterator */
/** @var ArrayIterator<int, string> $iterator */
$iterator = new ArrayIterator(array_keys($sessionData));
$data = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Regex.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function match(string $subject, string $pattern, int $flags = 0):
}

/**
* @return array<array<int, int|string|null>|string|null>|null
* @return array<mixed>|null
*/
public static function matchAll(string $subject, string $pattern, int $flags = 0): ?array
{
Expand Down

0 comments on commit 511b320

Please sign in to comment.