nunomaduro/larastan breaking changes
nunomaduro/larastan v3.0.0 (November 15, 2024) is its newest release with breaking changes, 33 of them. The first: Carbon edge-case handling code removed in nunomaduro/larastan v3.0.0. Every breaking API change we have recorded in nunomaduro/larastan on Packagist: 38 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v3.16.0, released December 4, 2026. The registry marks it abandoned: Abandoned. The author suggests larastan/larastan instead.. MIT license. Source repository
Its 2.0.0 release requires PHP 8 or later. PHP end of life dates.
nunomaduro/larastan v3.0.0 breaking changes
- Removed
Larastan no longer handles some Carbon edge cases itself. Use the official Carbon PHPStan extension by adding vendor/nesbot/carbon/extension.neon to phpstan.neon, unless phpstan-extension-installer is already used. github.com - Removed
Larastan no longer automatically adds generic return types for relations. Code relying on this must add the types manually, as described in the upgrade guide. github.com - Removed
Larastan 3.0 no longer supports Laravel versions below 11. Projects on older Laravel versions must stay on Larastan 2.x or upgrade Laravel first. github.com - Removed
Larastan\Larastan\Internal\LaravelVersion
Larastan\Larastan\Internal\LaravelVersion was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\AppEnvironmentReturnTypeExtension::__construct
Larastan\Larastan\ReturnTypes\AppEnvironmentReturnTypeExtension::__construct was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\AppFacadeEnvironmentReturnTypeExtension
Larastan\Larastan\ReturnTypes\AppFacadeEnvironmentReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\CollectionFilterRejectDynamicReturnTypeExtension
Larastan\Larastan\ReturnTypes\CollectionFilterRejectDynamicReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\ConfigGetDynamicMethodReturnTypeExtension
Larastan\Larastan\ReturnTypes\ConfigGetDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\FormRequestSafeDynamicMethodReturnTypeExtension
Larastan\Larastan\ReturnTypes\FormRequestSafeDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\Helpers\ConfigFunctionDynamicFunctionReturnTypeExtension
Larastan\Larastan\ReturnTypes\Helpers\ConfigFunctionDynamicFunctionReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\ReturnTypes\Helpers\EnvFunctionDynamicFunctionReturnTypeExtension
Larastan\Larastan\ReturnTypes\Helpers\EnvFunctionDynamicFunctionReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\Rules\NoEnvCallsOutsideOfConfigRule::__construct
Larastan\Larastan\Rules\NoEnvCallsOutsideOfConfigRule::__construct was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\Support\ConfigParser
Larastan\Larastan\Support\ConfigParser was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\Types\ModelRelationsDynamicMethodReturnTypeExtension
Larastan\Larastan\Types\ModelRelationsDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\Types\RelationDynamicMethodReturnTypeExtension
Larastan\Larastan\Types\RelationDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 packagist.org - Removed
Larastan\Larastan\Types\RelationParserHelper
Larastan\Larastan\Types\RelationParserHelper was removed in nunomaduro/larastan v3.0.0 packagist.org - Renamed
Larastan\Larastan\Properties\Schema\MySqlDataTypeToPhpTypeConverter
Use Larastan\Larastan\Properties\Schema\PhpMyAdminDataTypeToPhpTypeConverter instead. packagist.org - Renamed
Larastan\Larastan\Types\ModelProperty\GenericModelPropertyType::acceptsWithReason
Use Larastan\Larastan\Types\ModelProperty\GenericModelPropertyType::accepts instead. packagist.org - Renamed
TChildModel
The TChildModel template annotation on relation classes is now TDeclaringModel. Update your annotations to match. github.com - Renamed
TModelClass
The TModelClass template annotation on the Eloquent Builder class is now TModel. Update your annotations to match. github.com - Behavior changed
Larastan 3.0 stops parsing relation method bodies to infer generic types. Add the generic types to the relation method's return annotation, for example @return HasMany<Post, $this>. github.com - Default changed
Some rules are now enabled by default, so existing projects may see new reported errors after upgrading. github.com - Default changed
checkModelAppends
The ModelAppendsRule is now enabled by default. Model appends may start reporting errors. github.com - Default changed
noEnvCallsOutsideOfConfig
The NoEnvCallsOutsideOfConfigRule is now enabled by default. Code with env calls outside config may start reporting errors. github.com - Configuration changed
Some PHPStan config options were removed. If you need the previous behavior, add those options back to your config yourself. github.com - Configuration changed
checkPhpDocMissingReturn
Larastan no longer sets checkPhpDocMissingReturn to false, so PHPStan's own behaviour applies. Set the option in your own config to keep the old behaviour. github.com - Configuration changed
excludePaths
Blade files are no longer excluded by default. Add *.blade.php back to excludePaths if you analyse paths with Blade files and want them excluded. github.com - Signature changed
Larastan\Larastan\Properties\Schema\MySqlDataTypeToPhpTypeConverter::convert
Was public function convert(string $type): string; now public function convert(DataType $dataType): string. packagist.org - Signature changed
Larastan\Larastan\Properties\SquashedMigrationHelper::__construct
Was public function __construct(private array $schemaPaths, private FileHelper $fileHelper, private MySqlDataTypeToPhpTypeConverter $converter, private bool $disableSchemaScan); now public function __construct(private array $schemaPaths... packagist.org - Signature changed
Larastan\Larastan\Support\CollectionHelper::determineCollectionClass
Was public function determineCollectionClass(string $modelClassName, Type|null $modelType = null): Type; now public function determineCollectionClass(string $modelClassName): Type. packagist.org - Signature changed
Larastan\Larastan\Types\ModelProperty\GenericModelPropertyType::isSuperTypeOf
Was public function isSuperTypeOf(Type $type): TrinaryLogic; now public function isSuperTypeOf(Type $type): IsSuperTypeOfResult. packagist.org - Signature changed
Larastan\Larastan\Types\ViewStringType::accepts
Was public function accepts(Type $type, bool $strictTypes): TrinaryLogic; now public function accepts(Type $type, bool $strictTypes): AcceptsResult. packagist.org - Signature changed
Larastan\Larastan\Types\ViewStringType::isSuperTypeOf
Was public function isSuperTypeOf(Type $type): TrinaryLogic; now public function isSuperTypeOf(Type $type): IsSuperTypeOfResult. packagist.org
nunomaduro/larastan 2.0.0 breaking changes
- Removed
Larastan 2.0 only supports Laravel 9 and later, so older Laravel versions must be upgraded before upgrading Larastan. github.com - Removed
The minimum PHP version is now 8, so projects on older PHP versions must upgrade PHP before using Larastan 2.0. github.com - Renamed
NunoMaduro\Larastan\ReturnTypes\CollectionMakeDynamicStaticMethodReturnTypeExtension
Use NunoMaduro\Larastan\ReturnTypes\CollectionGenericStaticMethodDynamicStaticMethodReturnTypeExtension instead. packagist.org - Signature changed
NunoMaduro\Larastan\ReturnTypes\CollectionMakeDynamicStaticMethodReturnTypeExtension::__construct
Was public function __construct(CollectionHelper $collectionHelper); now public function __construct(private ReflectionProvider $reflectionProvider). packagist.org - Signature changed
NunoMaduro\Larastan\ReturnTypes\CollectionMakeDynamicStaticMethodReturnTypeExtension::getTypeFromStaticMethodCall
Was public function getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, Scope $scope): Type; now public function getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall... packagist.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.