Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPSTAN: Provide @template for JsonResource $resource for better access #95

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

pionl
Copy link
Contributor

@pionl pionl commented Aug 2, 2024

feat(PHPStan): Provide @template for JsonResource $resource for better type safe access

BREAKING CHANGE: PHPStan will now throw an error if you pass incorrect value to __construct or Resource::collection

  • made setContainer/getContainer/resourceArray/instance final

@pionl pionl self-assigned this Aug 2, 2024
…r type safe

BREAKING CHANGE: PHPStan will now throw an error if you pass incorrect value to __construct or Resource::collection

- made setContainer/getContainer/resourceArray/instance final
@pionl pionl merged commit a1a54e3 into main Aug 7, 2024
@pionl pionl deleted the json-resource-template branch August 7, 2024 14:48
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