What problem does your feature request address?
I use PHPStan to detect errors on static types.
No types are currently present in Models.
Usage example
private function logCustomer(Customer $customer): void
{
Log::info('logging customer', [
'id' => $customer->id,
'country' => $customer->unknownField, // here, PHPStan should be able to know that the field is unknown
]);
}
Describe the desired solution
Here is an example of how to make it compatible with PHPStan.
/**
* @property string $id
* @property string|null $email
* ...
*/
class Customer extends Model
{
//....
}
Alternatives considered
No response
Additional context
No response
What problem does your feature request address?
I use PHPStan to detect errors on static types.
No types are currently present in Models.
Usage example
Describe the desired solution
Here is an example of how to make it compatible with PHPStan.
Alternatives considered
No response
Additional context
No response