Skip to content

Fix shared PHPStan type safety#250

Merged
Verma-Punit merged 1 commit into
3.xfrom
agent/alpha2-phpstan-types
Jul 16, 2026
Merged

Fix shared PHPStan type safety#250
Verma-Punit merged 1 commit into
3.xfrom
agent/alpha2-phpstan-types

Conversation

@Verma-Punit

Copy link
Copy Markdown
Member

What changed

  • Normalize service IDs, phone codes, translations, and configuration values through the existing Data helper.
  • Type the Filament state callback with its real Livewire and schema component dependencies.
  • Inject the current request into AppServiceProvider::boot() using Laravel's supported provider dependency injection.

Why

The hosted Platform runs PHPStan at level 9. After syncing the OSS Alpha 2 baseline, these shared files produced nine type errors even though their runtime tests passed. Keeping the fixes in OSS preserves the shared-runtime ownership boundary and prevents a Platform-only fork.

Impact

No behavior or dependency changes. The changes make existing runtime assumptions explicit and retain the same login, phone placeholder, inline service creation, and validation-reset behavior.

Validation

  • vendor/bin/pint --dirty --format agent
  • OSS full suite: 92 tests, 378 assertions
  • Platform full suite with the same patch: 241 tests, 1,170 assertions
  • Platform PHPStan level 9: no errors

@Verma-Punit
Verma-Punit marked this pull request as ready for review July 16, 2026 06:05
@Verma-Punit
Verma-Punit merged commit 14e0a8f into 3.x Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant