Skip to content

fix(ci): resolve pint style + phpstan nullsafe errors#56

Open
Weegy wants to merge 1 commit intomainfrom
hotfix/ci-fixes
Open

fix(ci): resolve pint style + phpstan nullsafe errors#56
Weegy wants to merge 1 commit intomainfrom
hotfix/ci-fixes

Conversation

@Weegy
Copy link
Copy Markdown
Contributor

@Weegy Weegy commented Mar 16, 2026

Summary

Fixes the two CI failures on main:

1. Pint code style (routes/api.php)

  • Fixed no_extra_blank_lines and ordered_imports violations

2. PHPStan nullsafe errors (WebhookAdminController.php)

  • Line 54: Changed $request->space()?->id$request->space()->id (the ?? already handles the null case)
  • Line 194: Same fix in resolveSpaceId()

Quality Gates

  • ✅ Pint: 0 style issues
  • ✅ PHPStan: 0 errors
  • ⚠️ Tests: 49 failures pre-existed on main (not introduced by this PR)

- Fix no_extra_blank_lines and ordered_imports in routes/api.php
- Fix unnecessary nullsafe ?-> in WebhookAdminController (lines 54, 194)
  where ?? already handles null context
@Weegy Weegy added the bug Something isn't working label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant