Align type definitions to Laravel
Recently Laravel code has been refining the types definitions for parameters and return types. This PR aligns them with the current Laravel versions.
This is useful for static analysis tools like PHPStan; currently PHPStan may raise type errors for models that use Parental and that wouldn't be there with plain Eloquent models. This PR fixes that.
合并状态:未合并 关闭于 2025-02-06 4 条评论