Releases: larastan/larastan
Releases · larastan/larastan
2.9.5
v2.9.4
What's Changed
Added
Fixed
- fix: float not assignable to decimal cast by @calebdw in #1872
- fix: LazyCollection generics by @calebdw in #1852
- fix: illegal offset type by @calebdw in #1889
- fix: call getMethod on template type directly by @canvural in #1913
- fix: update
report
parameter inrescue
stub to match laravel by @carlalexander in #1911
Internal
New Contributors
- @carlalexander made their first contribution in #1911
Full Changelog: v2.9.3...v2.9.4
v2.9.3
What's Changed
Fixed
Internal
- fix: filament ci by @calebdw in #1873
- bump PHPStan version by @szepeviktor in #1890
- fix: bump filament ref by @calebdw in #1891
- test: add L11 to test matrix by @calebdw in #1892
- fix: uniform neon + fix typos by @szepeviktor in #1901
- test: add test for plucking computed properties by @calebdw in #1880
Full Changelog: v2.9.2...v2.9.3
2.9.2
What's Changed
Added
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
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
andmapWithKeys
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
- @akinoriakatsuka made their first contribution in #1853
Full Changelog: v2.9.0...v2.9.1
2.9.0
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
andddRawSql
toQueryBuilder.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
- @Hikaru-Giannis made their first contribution in #1817
- @eusonlito made their first contribution in #1823
- @simon-tma made their first contribution in #1827
- @lribi made their first contribution in #1821
- @besanek made their first contribution in #1840
Full Changelog: v2.8.1...v2.9.0
v2.8.1
v2.8.0
What's Changed
Added ✨
- feat: Support addColumn in migration helper by @nikolicaleksa in #1808
- feat: add support for create or first by @remcom in #1809
- Add stubs for relation
one
methods by @calebdw in #1785 - feat: Add new Benchmark.stub by @jesperbeisner in #1796
- Add stub for Model::$appends by @paulbalandan in #1805
Fixed 🐛
- Fix null/void problem (with latest PHPStan release) by @Brenneisen in #1802
- Fix collection methods unwrapping outer generic by @rovansteen in #1760
- Allow dynamic model properties with underscores by @Brenneisen in #1792
- Resolve guard user from request by @calebdw in #1782
Maintenance 🛠
- chore(deps): allow Laravel 11 by @canvural in #1798
- Update README.md to fix github handle for Nuno by @joelclermont in #1791
- Slightly clean up README.md by @bram-pkg in #1793
New Contributors
- @joelclermont made their first contribution in #1791
- @bram-pkg made their first contribution in #1793
- @Brenneisen made their first contribution in #1802
- @remcom made their first contribution in #1809
- @jesperbeisner made their first contribution in #1796
- @paulbalandan made their first contribution in #1805
Full Changelog: v2.7.0...v2.8.0
2.7.0
2.6.5
What's Changed
- Changed
retry()
helper stub to accept callable as$sleepMilliseconds
by @Plytas in #1698 - feat: implement stub versioning by @fyrts in #1710
- feat: add dynamic return type extension for str helper by @Daanra in #1706
- fix: Fixed false detection of columns being nullable by @nikolicaleksa in #1712
- feat: add test for dropColumn() when an array is passed by @EtraEllecon in #1711
- Add stub for
FormRequest::validated
by @fyrts in #1723 - Add 128 MB to unit test memory limit by @szepeviktor in #1733
- feat: Support migrations with conditional statements by @nikolicaleksa in #1714
- Ignore new monicahq/chandler error by @szepeviktor in #1756
- Test against php 8.3 by @sergiy-petrov in #1758
- Allow integration tests to run against Laravel 11 by @crynobone in #1761
- chore: fix e2e-tests.yml by @szepeviktor in #1765
- Fix snake count by @mad-briller in #1772
- Fix Redis facade tests by @ondrejmirtes in #1779
New Contributors
- @Plytas made their first contribution in #1698
- @fyrts made their first contribution in #1710
- @nikolicaleksa made their first contribution in #1712
- @EtraEllecon made their first contribution in #1711
- @sergiy-petrov made their first contribution in #1758
Full Changelog: v2.6.4...v2.6.5