This release introduces a new rule that can check the arguments of methods that expects a model property name, and can warn you if the passed argument is not actually a property of the model. You can read the details about the rule here.
NOTE: This rule is currently in beta! If you want to improve it's analysis, you can check out the issue here and contribute!
Added
- Add a new
view-string
PHPDoc type (#654) - Stubs for Eloquent builder
value
andorWhere
methods
Fixed
- Parameter type of the query builder's
where
,orWhere
andaddArrayOfWheres
(#651). - Fix callback parameters for
retry
(#663). - Using Reflection to initiate a model in
ModelPropertyExtension
to avoid errors caused by using Model constructor. (#666)