Skip to content

Commit c77735e

Browse files
Update PHPStan packages (#856)
* Update PHPStan packages * Update phpstan --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Frank Dekker <[email protected]>
1 parent f361ebc commit c77735e

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

composer.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Security/AzureAd/AzureAdAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function onAuthenticationSuccess(Request $request, TokenInterface $token,
6363

6464
$url = null;
6565
if ($request->query->has('state')) {
66-
$url = Assert::isArray(Json::decode($request->query->get('state'), true))['next'] ?? null;
66+
$url = Assert::isArray(Json::decode($request->query->get('state', ''), true))['next'] ?? null;
6767
}
6868
$url ??= $this->urlGenerator->generate(ProjectsController::class);
6969

src/Service/CodeReview/Comment/CommentMentionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getMentionedUsers(string $message): array
6060
continue;
6161
}
6262

63-
$mentions[(string)$matches[0][$i]] = $user;
63+
$mentions[$matches[0][$i]] = $user;
6464
}
6565

6666
return $mentions;

src/Service/Git/RevList/GitRevListParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GitRevListParser
1111
public function parseOneLine(string $data): array
1212
{
1313
$count = preg_match_all('/^>([a-z0-9]+)/im', $data, $matches);
14-
if ($count === 0 || $count === false || isset($matches[1]) === false) {
14+
if ($count === 0 || $count === false) {
1515
return [];
1616
}
1717

0 commit comments

Comments
 (0)