Skip to content

Releases: larastan/larastan

2.9.10

02 Nov 16:54
Compare
Choose a tag to compare

What's Changed

Added

  • Support for the new CollectedBy attribute f43e0c4

Fixed

  • fix: do not throw if application could not be bootstrapped by @NickSdot in #2077
  • Fixed unique collection method return type f97d92e
  • Fixed Enumerable:make method return type

New Contributors

Full Changelog: v2.9.9...v2.9.10

v2.9.9

16 Oct 11:41
Compare
Choose a tag to compare

What's Changed

  • Add typehint to env when specifying default value by @bram-pkg in #1995
  • feat: add cloud option to supported method for storage by @AhmedHelalAhmed in #2020
  • fix: incorrect phpdocs and stubs by @calebdw in #2028
  • fix: handle model property aliases by @calebdw in #1999
  • feat: builder doesn't have correct generic when initialized through class-string by @JeRabix in #2023
  • fix: properly handle static called on type for model query by @calebdw in #2030
  • Add support for model attributes property by @maartenpaauw in #2027
  • Fix not respecting return type of overridden Request::user() method. by @mad-briller in #1861
  • fix: check if class exists before calling reflectionProvider getClass by @calebdw in #2037
  • fix: relation class forwarding by @calebdw in #2042
  • remove unnecessary use of ParametersAcceptorSelector::selectSingle by @staabm in #2054
  • feat: useContainerCommandLoader parameter by @wslawski-printify in #2060
  • feat: add support for chunkById, chunkByIdDesc, and chunkMap methods by @calebdw in #2068
  • Support MailMessage in UsedEmailViewCollector by @koraga in #2064
  • feat: support newFactory method when resolving factory by @calebdw in #1922

New Contributors

Full Changelog: v2.9.8...v2.9.9

v2.9.8

06 Jul 18:14
340badd
Compare
Choose a tag to compare

What's Changed

Added

  • Add missing or incorrect type hints to QueryBuilder by @MrMeshok in #1923
  • feat: add support for intersection types in Model scope resolution by @calebdw in #1979
  • feat: better generic model property type by @canvural in #1959

Fixed

  • fix: add default migration arguments by @calebdw in #1976
  • fix: use ConstantStringType when constructing enum type by @calebdw in #1987

New Contributors

Full Changelog: v2.9.7...v2.9.8

v2.9.7

28 May 08:14
Compare
Choose a tag to compare

What's Changed

Added

  • Specify $this type for all Laravel macros automatically fdc7d29
  • Add support for whereNot and orWhereNot by @ganyicz in #1958

Fixed

  • fix: child builders with non generic parents by @calebdw in #1953

Internal

New Contributors

Full Changelog: v2.9.6...v2.9.7

v2.9.6

09 May 11:56
Compare
Choose a tag to compare

What's Changed

Added

  • Support for Laravel 11 casts method in 66db15f

Important

Make sure you read the upgrade guide on this topic to learn how you can correctly use this feature.

Fixed

Full Changelog: v2.9.5...v2.9.6

2.9.5

16 Apr 19:19
Compare
Choose a tag to compare

What's Changed

Fixed:

  • added sole method to Relation stubs - 56d7123
  • made ModelAppendsRule optional - 4834d0f

Maintanence

Full Changelog: v2.9.4...v2.9.5

v2.9.4

14 Apr 19:15
3e7b121
Compare
Choose a tag to compare

What's Changed

Added

Fixed

Internal

New Contributors

Full Changelog: v2.9.3...v2.9.4

v2.9.3

14 Apr 11:40
20d7c9d
Compare
Choose a tag to compare

What's Changed

Fixed

Internal

Full Changelog: v2.9.2...v2.9.3

2.9.2

01 Mar 11:15
a79b46b
Compare
Choose a tag to compare

What's Changed

Added

  • feat: return all auth models when no guard is specified by @calebdw in #1848

Fixed

  • Fix UnusedViewsRule not providing an existing file path to RuleErrorBuilder by @mad-briller in #1862

Internal

Full Changelog: v2.9.1...v2.9.2

2.9.1

26 Feb 14:18
Compare
Choose a tag to compare

What's Changed

Added

  • Add support for restoreOrCreate and createOrRestore SoftDelete macros. by @mad-briller in #1859
  • chore: add withWhereHas method to supported Eloquent Builder methods by @akinoriakatsuka in #1853

Fixed

  • Fixed issue where collections with invalid templates configured would cause a fatal error. by @mad-briller in #1863
  • Fixed a case with macros registered as static methods with array syntax 42d5262
  • Fixed an issue where map and mapWithKeys methods of Eloquent collection returns a Eloquent collection if model is returned from the callback 097a2d2

Internal

  • chore: add tests for LazyCollection flatmap by @calebdw in #1851
  • Added error identifiers to Larastan's rules b3f95c4

New Contributors

Full Changelog: v2.9.0...v2.9.1