From 0023760a280378f568d98082422f7635cb11de09 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Mon, 6 Apr 2026 20:39:08 +0200 Subject: [PATCH] Fix PHP syntax errors in BearerTokenResponse and DeleteCommentPipeline --- app/Auth/BearerTokenResponse.php | 2 +- app/Jobs/GroupsPipeline/DeleteCommentPipeline.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Auth/BearerTokenResponse.php b/app/Auth/BearerTokenResponse.php index 25c2c4bd5..5b4e9c333 100644 --- a/app/Auth/BearerTokenResponse.php +++ b/app/Auth/BearerTokenResponse.php @@ -14,7 +14,7 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke * * @return array */ - protected function getExtraParams(AccessTokenEntityInterface $accessToken) + protected function getExtraParams(AccessTokenEntityInterface $accessToken): array { return [ 'scope' => implode(' ', array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes())), diff --git a/app/Jobs/GroupsPipeline/DeleteCommentPipeline.php b/app/Jobs/GroupsPipeline/DeleteCommentPipeline.php index 7ef8e4fff..6576a1cfd 100644 --- a/app/Jobs/GroupsPipeline/DeleteCommentPipeline.php +++ b/app/Jobs/GroupsPipeline/DeleteCommentPipeline.php @@ -46,7 +46,7 @@ class DeleteCommentPipeline implements ShouldQueue { $groupId = $this->status->group_id; $postId = $this->status->id; - if($this->status->) + // if($this->status->) $parent = $this->parent; $parent->reply_count = GroupComment::whereStatusId($parent->id)->count(); $parent->save();