nunomaduro/larastan
Abandoned; use larastan/larastan. Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel
v3.10.0
47M downloads/mo
#1110 most downloaded on Packagist
larastan/larastan
What this package is like to depend on
Last release 2 months ago
28 May 2026
Ships fairly regularly
a new release about every 5 weeks
Rarely documented
notes for 10 of 186 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
186 releases · first in 2018
13 releases in the last 12 months
see the full history below
Release timeline
186 releases · Jul 2018 to May 2026Releases
latest 60 of 186-
v3.10.028 May 2026Release notes
Open source →What's Changed
Added
- PHPStan 2.2.0 compatibility
- Update codestyle check to latest version by @jnoordsij in #2484
- Add export-ignore for assets directory in .gitattributes by @joke2k in #2490
- Add type narrowing for
wheremethod on collections by @jnoordsij in #2483
Fixed
- fix: invalid parameter name by @calebdw in #2488
- Fix failing tests on Windows by @jnoordsij in #2486
Internal
- Allow PHPUnit v13 by @jnoordsij in #2485
- docs: update coding style guidelines in CONTRIBUTING.md by @haratake22 in #2447
New Contributors
Full Changelog: v3.9.6...v3.10.0
-
v3.9.616 Apr 2026 -
v3.9.511 Apr 2026 -
v3.9.402 Apr 2026Release notes
Open source →What's Changed
Changed
- refactor: create new extensions out of old pipeline based approach by @canvural in #2448
- refactor: leverage more PHPStan things by @canvural in #2449
- fix: type inference for MySQL
ENUMtypes in squashed migrations by @FeBe95 in #2454 - feat: improve map and mapWithKeys return types by @canvural in #2466
Internal
- Also run on v13 sample application by @jnoordsij in #2458
Full Changelog: v3.9.3...v3.9.4
-
v3.9.320 Feb 2026Release notes
Open source →What's Changed
- feat: allow Laravel 13 by @canvural in #2446
- Improve config type inference to respect @return docblocks by @haratake22 in #2445
New Contributors
- @haratake22 made their first contribution in #2445
Full Changelog: v3.9.2...v3.9.3
-
v3.9.230 Jan 2026Release notes
Open source →What's Changed
Added
Fixed
- fix: model property type has template type 0ac2cfa
New Contributors
Full Changelog: v3.9.1...v3.9.2
-
v3.9.121 Jan 2026Release notes
Open source →What's Changed
Fixed
- [3.x] Update PendingRequest stubs by @ramonrietdijk in #2432
Full Changelog: v3.9.0...v3.9.1
-
v3.9.017 Jan 2026Release notes
Open source →What's Changed
Added
- feat: Add stubs for Cache facade by @melvinversluijs in #2420
- feat: Migration caching (
enableMigrationCacheoption, disabled by default) in 9b35634d and 82c1889 Read more about it here - feat:
parseModelCastsMethodoption for better cast inference in afd59445 Read more about it here: - feat: Styled bootstrap error reporting with stack traces in 1756b49a
Fixed
- [3.x] fix: nullability detection for TEXT and some other column types by @hivokas in #2422
- fix: groupBy stub in 7d52136f
- fix: Primary key type inference for models using HasUuids and HasUlids (#2188) in 4894e254
New Contributors
- @melvinversluijs made their first contribution in #2420
- @hivokas made their first contribution in #2422
Full Changelog: v3.8.1...v3.9.0
-
v3.8.111 Dec 2025Release notes
Open source →What's Changed
- Run tests on PHP 8.5 by @jnoordsij in #2382
- Support foreignUuid and foreignUlid by @JeftaAtSiip in #2403
- Narrow HasEvents::dispatchesEvents by @liamduckett in #2410
- Make
PendingRequestgeneric 9b7eccd
New Contributors
- @jnoordsij made their first contribution in #2382
- @JeftaAtSiip made their first contribution in #2403
- @liamduckett made their first contribution in #2410
Full Changelog: v3.8.0...v3.8.1
-
v3.8.027 Oct 2025Release notes
Open source →What's Changed
Added
Add optional phpMyAdmin SQL parser integration by @canvural in #2388
Larastan can now detect automatically if you have
phpmyadmin/sql-parserpackage 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.Treat unsigned database columns as
non-negative-int52aa393Fixed
- fix: add int to Enumerable::pluck argument 974100d
- fix: cache model casts 0ea3de7
- chore: use cached parser for parsing migrations 8245ac3
Internal
Full Changelog: v3.7.2...v3.8.0
-
v3.7.219 Sep 2025Nothing published for this version
-
v3.7.110 Sep 2025Nothing published for this version
-
v3.7.009 Sep 2025Nothing published for this version
-
v3.6.125 Aug 2025Nothing published for this version
-
v3.6.011 Jul 2025Nothing published for this version
-
v3.5.019 Jun 2025Nothing published for this version
-
v3.4.210 Jun 2025Nothing published for this version
-
v3.4.109 Jun 2025Nothing published for this version
-
v3.4.022 Apr 2025Nothing published for this version
-
v3.3.103 Apr 2025Nothing published for this version
-
v3.3.003 Apr 2025Nothing published for this version
-
v3.2.014 Mar 2025Nothing published for this version
-
v3.1.020 Feb 2025Nothing published for this version
-
v3.0.406 Feb 2025Nothing published for this version
-
v3.0.306 Feb 2025Nothing published for this version
-
v3.0.226 Nov 2024Nothing published for this version
-
v3.0.126 Nov 2024Nothing published for this version
-
v3.0.015 Nov 2024Nothing published for this version
-
v2.11.210 Jun 2025Nothing published for this version
-
v2.11.109 Jun 2025Nothing published for this version
-
v2.11.021 Apr 2025Nothing published for this version
-
v2.10.014 Mar 2025Nothing published for this version
-
v2.9.1406 Feb 2025Nothing published for this version
-
v2.9.1304 Feb 2025Nothing published for this version
-
v2.9.1226 Nov 2024Nothing published for this version
-
v2.9.1111 Nov 2024Nothing published for this version
-
v2.9.1019 Oct 2024Nothing published for this version
-
v2.9.915 Oct 2024Nothing published for this version
-
v2.9.806 Jul 2024Nothing published for this version
-
v2.9.727 May 2024Nothing published for this version
-
v2.9.609 May 2024Nothing published for this version
-
v2.9.516 Apr 2024Nothing published for this version
-
v2.9.414 Apr 2024Nothing published for this version
-
v2.9.306 Apr 2024Nothing published for this version
-
v2.9.227 Feb 2024Nothing published for this version
-
v2.9.126 Feb 2024Nothing published for this version
-
v2.9.013 Feb 2024Nothing published for this version
-
v2.8.108 Jan 2024Nothing published for this version
-
v2.8.002 Jan 2024Nothing published for this version
-
v2.7.004 Dec 2023Nothing published for this version
-
v2.6.517 Nov 2023Nothing published for this version
-
v2.6.429 Jul 2023Nothing published for this version
-
v2.6.313 Jun 2023Nothing published for this version
-
v2.6.210 Jun 2023Nothing published for this version
-
v2.6.104 Jun 2023Nothing published for this version
-
v2.6.020 Apr 2023Nothing published for this version
-
2.5.211 Apr 2023Nothing published for this version
-
2.5.104 Mar 2023Nothing published for this version
-
2.5.004 Mar 2023Nothing published for this version
-
2.4.105 Feb 2023Nothing published for this version