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

Eloquent\Model: mismatched @property annotation type #14

Open
2 tasks
rentalhost opened this issue Jun 1, 2017 · 0 comments
Open
2 tasks

Eloquent\Model: mismatched @property annotation type #14

rentalhost opened this issue Jun 1, 2017 · 0 comments
Milestone

Comments

@rentalhost
Copy link
Owner

Following #8

This inspection should detects if @property declare at least the specific field type.

/** @propety null $id */
protected $casts = [ 'id' => 'int' ];

// Not acceptable: $id should be `int` or `int|null` (in this case).
  • Identify mismatched types (eg. above);
  • Make sure to merge existent types instead of overwrite (eg. null + int = int|null);
@rentalhost rentalhost added this to the 0.3.0+ milestone Jun 1, 2017
@rentalhost rentalhost modified the milestones: 0.3.0+, 1.0.0+ Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant