1 repositorio
Verification that model attribute casting definitions match expected types and array shapes.
Distinct from Attribute Casting: Distinct from Attribute Casting by validating the configuration of the cast rather than performing the actual conversion.
Explore 1 awesome GitHub repository matching data & databases · Cast Configuration Validation. Refine with filters or upvote what's useful.
Larastan is a static analysis extension and type inference engine for PHP designed to detect bugs and type errors in Laravel applications. It extends PHPStan to resolve framework-specific patterns and magic methods, providing a rule-based scanning engine to audit code quality without executing the application. The tool specializes in Eloquent analysis, verifying that model properties, casts, and relationships align with database schemas and migrations. It tracks types across Eloquent collections, custom builders, and model factories to ensure type safety during database operations and iterati
Checks that the return type and array shape of model casts match the expected configuration.