Skip to content

Releases: larastan/larastan

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

2.9.0

13 Feb 12:05
35fa9cb
Compare
Choose a tag to compare

Added

  • feat: return array shape from model only method by @calebdw in #1834
  • feat: detect usage of env() function outside of config folder by @calebdw in #1828
  • feat: infer nullable type information by filled/blank function calls by @tpetry in #1843
  • Add stub for Str::replace by @besanek in #1840
  • Add stubs for Collection->pop and Collection->shift by @simon-tma in #1827
  • Added toRawSql, dumpRawSql and ddRawSql to QueryBuilder.stub by @eusonlito in #1823
  • Add missing typehints to query builder stub by @lribi in #1821

Fixed

  • To avoid PHPUnit deprecations, add the 'static' keyword to the method by @Hikaru-Giannis in #1817
  • fix: add generics for cursor method by @calebdw in #1825
  • fix: check relation parent instead of string in name for many/morph by @calebdw in #1835
  • fix: infinite mixin recursion by @calebdw in #1839
  • fix: HasOneThrough relation being recognized as a collection by @calebdw in #1841
  • fix: model first not checking model properties by @calebdw in #1845

Internal

  • chore: add test for nullable collection cast by @calebdw in #1846
  • feat: add filament as e2e test and update others by @canvural in #1847

New Contributors

Full Changelog: v2.8.1...v2.9.0

v2.8.1

08 Jan 21:54
Compare
Choose a tag to compare

What's Changed?

Fixed

  • check for macros on query builder too: 6e2729e
  • use resolveName in ModelFindExtension: b7cc6a2

Full Changelog: v2.8.0...v2.8.1

v2.8.0

02 Jan 22:22
d60c1a6
Compare
Choose a tag to compare

What's Changed

Added ✨

Fixed 🐛

Maintenance 🛠

New Contributors

Full Changelog: v2.7.0...v2.8.0