Skip to content

Commit 73c3e04

Browse files
committed
fix: style code with phpstan
1 parent 4b50264 commit 73c3e04

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ parameters:
99
tmpDir: build/phpstan
1010
checkOctaneCompatibility: true
1111
checkModelProperties: true
12-
reportUnmatchedIgnoredErrors: false
13-
reportMaybes: false

src/Providers/TelegramGitNotifierServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function register(): void
4646
/**
4747
* Get the services provided by the provider.
4848
*
49-
* @return array|null
49+
* @return array<string>|null
5050
*/
5151
public function provides(): ?array
5252
{

src/Services/CommandService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function handle(): void
8282
}
8383

8484
/**
85-
* @return array[]
85+
* @return array<string[]>
8686
*/
8787
public static function menuCommands(): array
8888
{

src/Services/NotificationService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class NotificationService
1414
{
1515
protected Request $request;
1616

17+
/**
18+
* @var array<int|string>
19+
*/
1720
protected array $chatIds = [];
1821

1922
protected Notifier $notifier;
@@ -73,6 +76,7 @@ private function sendNotification(string $event): void
7376
continue;
7477
}
7578

79+
/** @var array<int|string> $thread */
7680
foreach ($thread as $threadId) {
7781
$this->notifier->sendNotify(null, [
7882
'chat_id' => $chatId, 'message_thread_id' => $threadId,

src/Traits/Markup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ trait Markup
99
/**
1010
* Generate menu markup.
1111
*
12-
* @return array[]
12+
* @param Telegram $telegram
13+
*
14+
* @return array<string[]>
1315
*/
1416
public function menuMarkup(Telegram $telegram): array
1517
{

0 commit comments

Comments
 (0)