Skip to content

Commit cd83485

Browse files
tanhongitCopilot
andcommitted
fix: add PHPStan baseline for nested array offset access on mixed
Webhook payloads typed as array<string, mixed> produce unavoidable offset access errors at nested levels. Baselined for: - ProcessWebhookEvent, GithubService, WebhookService Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a3dbcdf commit cd83485

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

phpstan-baseline.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
parameters:
22
ignoreErrors:
3+
- message: '#Cannot access offset .+ on mixed\.#'
4+
paths:
5+
- src/Jobs/ProcessWebhookEvent.php
6+
- src/Services/GithubService.php
7+
- src/Services/WebhookService.php
8+
9+
- message: '#Cannot cast mixed to (string|int)\.#'
10+
paths:
11+
- src/Jobs/ProcessWebhookEvent.php
12+
- src/Services/GithubService.php
13+
314
- message: '#Parameter \#1 \$view of function view expects view-string\|null, string given\.#'
415
paths:
516
- src/Services/GithubService.php

0 commit comments

Comments
 (0)