---
title: "nunomaduro/larastan v3.0.0 Breaking Changes on Packagist"
description: "What each nunomaduro/larastan release removed, renamed or changed: 38 breaking changes in 2 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/nunomaduro/larastan
last_updated: 2026-12-04
---

# 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

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](https://github.com/larastan/larastan)

Its 2.0.0 release requires PHP 8 or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [2.0.0](#v-2-0-0) to [v3.0.0](#v-v3-0-0): 33 breaking changes in 1 version.

## nunomaduro/larastan v3.0.0 breaking changes

nunomaduro/larastan v3.0.0, released November 15, 2024: 33 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](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **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](https://github.com/larastan/larastan/releases/tag/v3.0.0)
- **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](https://github.com/larastan/larastan/releases/tag/v3.0.0)
- **Removed** `Larastan\Larastan\Internal\LaravelVersion`  

Larastan\\Larastan\\Internal\\LaravelVersion was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\AppEnvironmentReturnTypeExtension::__construct`  

Larastan\\Larastan\\ReturnTypes\\AppEnvironmentReturnTypeExtension::\_\_construct was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\AppFacadeEnvironmentReturnTypeExtension`  

Larastan\\Larastan\\ReturnTypes\\AppFacadeEnvironmentReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\CollectionFilterRejectDynamicReturnTypeExtension`  

Larastan\\Larastan\\ReturnTypes\\CollectionFilterRejectDynamicReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\ConfigGetDynamicMethodReturnTypeExtension`  

Larastan\\Larastan\\ReturnTypes\\ConfigGetDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\FormRequestSafeDynamicMethodReturnTypeExtension`  

Larastan\\Larastan\\ReturnTypes\\FormRequestSafeDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\Helpers\ConfigFunctionDynamicFunctionReturnTypeExtension`  

Larastan\\Larastan\\ReturnTypes\\Helpers\\ConfigFunctionDynamicFunctionReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\ReturnTypes\Helpers\EnvFunctionDynamicFunctionReturnTypeExtension`  

Larastan\\Larastan\\ReturnTypes\\Helpers\\EnvFunctionDynamicFunctionReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\Rules\NoEnvCallsOutsideOfConfigRule::__construct`  

Larastan\\Larastan\\Rules\\NoEnvCallsOutsideOfConfigRule::\_\_construct was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\Support\ConfigParser`  

Larastan\\Larastan\\Support\\ConfigParser was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\Types\ModelRelationsDynamicMethodReturnTypeExtension`  

Larastan\\Larastan\\Types\\ModelRelationsDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\Types\RelationDynamicMethodReturnTypeExtension`  

Larastan\\Larastan\\Types\\RelationDynamicMethodReturnTypeExtension was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Removed** `Larastan\Larastan\Types\RelationParserHelper`  

Larastan\\Larastan\\Types\\RelationParserHelper was removed in nunomaduro/larastan v3.0.0 [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Renamed** `Larastan\Larastan\Properties\Schema\MySqlDataTypeToPhpTypeConverter`  

Use Larastan\\Larastan\\Properties\\Schema\\PhpMyAdminDataTypeToPhpTypeConverter instead. [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Renamed** `Larastan\Larastan\Types\ModelProperty\GenericModelPropertyType::acceptsWithReason`  

Use Larastan\\Larastan\\Types\\ModelProperty\\GenericModelPropertyType::accepts instead. [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Renamed** `TChildModel`  

The TChildModel template annotation on relation classes is now TDeclaringModel. Update your annotations to match. [github.com](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **Renamed** `TModelClass`  

The TModelClass template annotation on the Eloquent Builder class is now TModel. Update your annotations to match. [github.com](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **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](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **Default changed**  

Some rules are now enabled by default, so existing projects may see new reported errors after upgrading. [github.com](https://github.com/larastan/larastan/releases/tag/v3.0.0)
- **Default changed** `checkModelAppends`  

The ModelAppendsRule is now enabled by default. Model appends may start reporting errors. [github.com](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **Default changed** `noEnvCallsOutsideOfConfig`  

The NoEnvCallsOutsideOfConfigRule is now enabled by default. Code with env calls outside config may start reporting errors. [github.com](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **Configuration changed**  

Some PHPStan config options were removed. If you need the previous behavior, add those options back to your config yourself. [github.com](https://github.com/larastan/larastan/releases/tag/v3.0.0)
- **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](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **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](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md)
- **Signature changed** `Larastan\Larastan\Properties\Schema\MySqlDataTypeToPhpTypeConverter::convert`  

Was public function convert(string $type): string; now public function convert(DataType $dataType): string. [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **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](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **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](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Signature changed** `Larastan\Larastan\Types\ModelProperty\GenericModelPropertyType::isSuperTypeOf`  

Was public function isSuperTypeOf(Type $type): TrinaryLogic; now public function isSuperTypeOf(Type $type): IsSuperTypeOfResult. [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **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](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)
- **Signature changed** `Larastan\Larastan\Types\ViewStringType::isSuperTypeOf`  

Was public function isSuperTypeOf(Type $type): TrinaryLogic; now public function isSuperTypeOf(Type $type): IsSuperTypeOfResult. [packagist.org](https://packagist.org/packages/nunomaduro/larastan#v3.0.0)

## nunomaduro/larastan 2.0.0 breaking changes

nunomaduro/larastan 2.0.0, released January 26, 2022: 5 breaking changes.

- **Removed**  

Larastan 2.0 only supports Laravel 9 and later, so older Laravel versions must be upgraded before upgrading Larastan. [github.com](https://github.com/larastan/larastan/releases/tag/2.0.0)
- **Removed**  

The minimum PHP version is now 8, so projects on older PHP versions must upgrade PHP before using Larastan 2.0. [github.com](https://github.com/larastan/larastan/releases/tag/2.0.0)
- **Renamed** `NunoMaduro\Larastan\ReturnTypes\CollectionMakeDynamicStaticMethodReturnTypeExtension`  

Use NunoMaduro\\Larastan\\ReturnTypes\\CollectionGenericStaticMethodDynamicStaticMethodReturnTypeExtension instead. [packagist.org](https://packagist.org/packages/nunomaduro/larastan#2.0.0)
- **Signature changed** `NunoMaduro\Larastan\ReturnTypes\CollectionMakeDynamicStaticMethodReturnTypeExtension::__construct`  

Was public function \_\_construct(CollectionHelper $collectionHelper); now public function \_\_construct(private ReflectionProvider $reflectionProvider). [packagist.org](https://packagist.org/packages/nunomaduro/larastan#2.0.0)
- **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](https://packagist.org/packages/nunomaduro/larastan#2.0.0)

## Related packages

- [larastan/larastan](https://since.dev/packages/packagist/larastan/larastan.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
