Skip to content

Commit c2157c0

Browse files
committed
fix: match route with index action
1 parent 736fad4 commit c2157c0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

phpstan-baseline.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ parameters:
88

99
- message: '#Parameter \#1 \$url of method CSlant\\TelegramGitNotifier\\Webhook\:\:setUrl\(\) expects string, mixed given\.#'
1010
path: src/Http/Actions/WebhookAction.php
11+
12+
- message: '#Parameter \#1 \$prefix of static method Illuminate\\Support\\Facades\\Route::prefix\(\) expects string, mixed given\.#'
13+
path: routes/bot.php
14+
15+
- message: '#Part \$routePrefix \(mixed\) of encapsed string cannot be cast to string\.#'
16+
path: routes/bot.php

src/Http/Actions/IndexAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct()
4444
* @throws MessageIsEmptyException
4545
* @throws SendNotificationException
4646
*/
47-
public function index(): void
47+
public function __invoke(): void
4848
{
4949
$sendNotification = new NotificationService(
5050
$this->notifier,

0 commit comments

Comments
 (0)