nunomaduro/larastan
Larastan is a PHPStan extension for Laravel that analyzes your app to catch bugs early. It boots the container to resolve dynamic types, supports Laravel’s “magic,” and improves code quality with stronger static typing.
Full Changelog: https://github.com/larastan/larastan/compare/v3.9.2...v3.9.3
ENUM types in squashed migrations by @ngmy in https://github.com/larastan/larastan/pull/2434Full Changelog: https://github.com/larastan/larastan/compare/v3.9.1...v3.9.2
Full Changelog: https://github.com/larastan/larastan/compare/v3.9.0...v3.9.1
enableMigrationCache option, disabled by default) in https://github.com/larastan/larastan/commit/9b35634d and https://github.com/larastan/larastan/commit/82c18890d0d5b012bc39a3432531e5b6cd1b4b3a Read more about it hereparseModelCastsMethod option for better cast inference in https://github.com/larastan/larastan/commit/afd59445 Read more about it here:Full Changelog: https://github.com/larastan/larastan/compare/v3.8.1...v3.9.0
PendingRequest generic https://github.com/larastan/larastan/commit/9b7eccd2ea3b0c741b318413d7341667f138aae5Full Changelog: https://github.com/larastan/larastan/compare/v3.8.0...v3.8.1
Larastan can now detect automatically if you have phpmyadmin/sql-parser package and use that to parse your squashed database migrations. This parser package has better support for different SQL keywords. Note: The package has GPL 2 license. Meaning if you install it and distribute your app with it you also need to have GPL 2 licensed application. But generally this is not a problem because you should install Larastan and the sql-parser package as a development dependency and remove these development dependencies while deploying your application to production.
non-negative-int https://github.com/larastan/larastan/commit/52aa393d253a998479dfefbcbf2ed04a75e2fa1aFull Changelog: https://github.com/larastan/larastan/compare/v3.7.2...v3.8.0
Full Changelog: https://github.com/larastan/larastan/compare/v3.7.1...v3.7.2
Full Changelog: https://github.com/larastan/larastan/compare/v3.7.0...v3.7.1
public const in Schema table names by @riasvdv in https://github.com/larastan/larastan/pull/2315TDeclaringModel to code snippet by @ramonrietdijk in https://github.com/larastan/larastan/pull/2349NoMissingTranslationsRule by @ramonrietdijk in https://github.com/larastan/larastan/pull/2340NoPublicModelScopeAndAccessorRuleFull Changelog: https://github.com/larastan/larastan/compare/v3.6.1...v3.7.0
Full Changelog: https://github.com/larastan/larastan/compare/v3.6.0...v3.6.1
getCountForPagination as a pass-thru for Laravel versions >= 12.15 by @cosmastech in https://github.com/larastan/larastan/pull/2301Config::collection() calls (only for Laravel >= 12.20.0) Note: Needs checkConfigTypes parameter to be enabled in the config.NoAuthFacadeInRequestScopeRule and NoAuthHelperInRequestScopeRule Read more about it hereConfigCollectionRule to warn you if you pass a config option that is not an array to Config::collection call. Note: Needs checkConfigTypes parameter to be enabled in the config.pluck on collections with closures. (only for Laravel >= 12.20.0) https://github.com/larastan/larastan/commit/fd16758f1097b66c81a91db5cd04078880c976d0Full Changelog: https://github.com/larastan/larastan/compare/v3.5.0...v3.6.0
NoEnvCallsOutsideOfConfigRule by @sertxudev in https://github.com/larastan/larastan/pull/2298Full Changelog: https://github.com/larastan/larastan/compare/v3.4.2...v3.5.0
Full Changelog: https://github.com/larastan/larastan/compare/v3.4.1...v3.4.2
Full Changelog: https://github.com/larastan/larastan/compare/v3.4.1...v3.4.2
Full Changelog: https://github.com/larastan/larastan/compare/v3.4.0...v3.4.1
post and query can return array b94eb6d115983951e20f88a7c3667dbf8f062ff9 (https://github.com/larastan/larastan/pull/2270) by @rikvdhFull Changelog: https://github.com/larastan/larastan/compare/v2.11.0...v2.11.1
This release includes bunch of new features that will help you fix some PHPStan level 7 errors 💪🏽
chunkWhile stubLangGetReturnTypeExtension extension and 64d7afe06f6bf24e0c3c75c48dd0fac456b68a6bApp facade environment methodInteractsWithInput stubFormRequestSafeDynamicMethodReturnTypeExtensionCookie::get methodgeneralizeEnvReturnType config option and extension ✨ Read more about it here.config return types: 31e3302b4d5597b83bd85afd0f83b3e336623569, 1640954d16c54fa8d4d59c2736938846a13b14f2, 8787a14d546cf4a4afcd76f6d9bb3ffdc3e1311a, 3ea3de4498343331b7069b9c8e06a9eb42ab4d39 ✨ Read more about it here.value helper function: a532dacfd4a8a4b2ad98f9a46493695680305b7d, 412064409e308cc4bbf400e3289da1f82e870e38config and env function default arg can be Closureneon highlighting by @FeBe95 in https://github.com/larastan/larastan/pull/2258Full Changelog: https://github.com/larastan/larastan/compare/v3.3.1...v3.4.0
This release includes bunch of new features that will help you fix some PHPStan level 7 errors 💪🏽
LangGetReturnTypeExtension extensionApp facade environment methodInteractsWithInput stubFormRequestSafeDynamicMethodReturnTypeExtensionCookie::get methodgeneralizeEnvReturnType config option and extensioncheckConfigTypes config parameter and ConfigFunctionDynamicFunctionReturnTypeExtension and ConfigGetDynamicMethodReturnTypeExtension and ignore callable constant strings Read more about it here.value helper and check for callable instead of closureconfig and env function default arg can be ClosureFull Changelog: https://github.com/larastan/larastan/compare/v2.10.0...v2.11.0
Full Changelog: https://github.com/larastan/larastan/compare/v3.3.0...v3.3.1
Full Changelog: https://github.com/larastan/larastan/compare/v3.2.0...v3.3.0
phpmyadmin/sql-parser by iamcal/sql-parser.Full Changelog: https://github.com/larastan/larastan/compare/v3.1.0...v3.2.0
phpmyadmin/sql-parser by iamcal/sql-parser.Full Changelog: https://github.com/larastan/larastan/compare/v2.9.14...v2.10.0
Full Changelog: https://github.com/larastan/larastan/compare/v3.0.4...v3.1.0
Latest PHPStan version compatibility
Full Changelog: https://github.com/larastan/larastan/compare/v3.0.3...v3.0.4
Latest PHPStan version compatibility
Full Changelog: https://github.com/larastan/larastan/compare/v2.9.13...v2.9.14
Full Changelog: https://github.com/larastan/larastan/compare/v3.0.2...v3.0.3
Full Changelog: https://github.com/larastan/larastan/compare/v2.9.12...v2.9.13
Updated minimum required PHPStan version to 2.0.2
Full Changelog: https://github.com/larastan/larastan/compare/v3.0.1...v3.0.2
Also changes from 2.9.12
Full Changelog: https://github.com/larastan/larastan/compare/v3.0.0...v3.0.1
Collection::reject by @spawnia in https://github.com/larastan/larastan/pull/2107Full Changelog: https://github.com/larastan/larastan/compare/v2.9.11...v2.9.12
This release adds compability with PHPStan 2 and drops support for Laravel versions < 11
Please make sure you read the both PHPStan's and Larastan's upgrade guides!
Notable changes:
How can I help you explore Laravel packages today?