larastan

⚗️ Adds code analysis to Laravel improving developer productivity and code quality.

MIT License

Downloads
45.5M
Stars
5.2K
Committers
152

Bot releases are visible (Hide)

larastan - 0.7.13

Published by canvural about 3 years ago

Fixed

Added

  • Support global macros on the eloquent query builder.
  • Partial support for defining columns with foreignIdFor in migrations. (#932) Thanks @Josh-G
  • Extension for collect helper and Collection::make (#904)
  • Support for scopes defined in model docblocks (88422fb)
  • rescue helper stub (#961) Thanks @jrmajor
  • Added trait_exists to ensure orchestra/testbench is installed for packages. (#957) Thanks @rajyan
  • Larastan now finds Laravel app even if it's not in the current working directory
larastan - 0.7.12

Published by canvural about 3 years ago

Added

  • Support for AsArrayObject and AsCollection model casts.
  • Use bleeding edge config to run tests.

Fixed

  • Corrected stubs from bleeding edge feedback.
  • Changed EloquentBuilder stub to fix several relation builder methods return types when custom builder is used. (#899) Thanks @fragkp
  • Changed EloquentBuilder stub to fix whereHas return type when custom builder is used. (#896) Thanks @fragkp

Changed

  • Refactored tests to separate Laravel 8 specific tests.
larastan - 0.7.11

Published by canvural about 3 years ago

Added

  • Support for Laravel 8 model factories. (#861, 6a03ad7)
  • Support for orWhere HigherOrderBuilderProxy property. (#884) Thanks @shaffe-fr
  • Added more precise declarations to Factory stub (#888) Thanks @spawnia

Changed

  • Laravel 9 tests cannot run on PHP 7.4
larastan - 0.7.9

Published by canvural over 3 years ago

Fixed

  • Fixed an issue where accessing dateClass property directly causing issues. (#865)
larastan - 0.7.8

Published by canvural over 3 years ago

Fixed

  • Revert "fix bootstrap path (#852)" #858
larastan - 0.7.7

Published by canvural over 3 years ago

Added

  • Use checkExplicitMixed PHPStan option when running tests (#844)
  • Added .github folder to the export list (#849) Thanks @dingo-d
  • Added support for detecting nested trait usage for SoftDeletes trait (#838) Thanks @IAmRGroot
  • Added support for vendor-dir (#850) Thanks @rajyan

Fixed

  • Correct return type for restore method
  • Nullable properties should not be overwritten when applying model casts
  • Fixed suggest in Composer config (#846) Thanks @szepeviktor
  • Fixed bootstrap path (#852) Thanks @rajyan
larastan - 0.7.6

Published by canvural over 3 years ago

Fixed

  • Update link to Octane dependency injection docs (#829) Thanks @spawnia
larastan - 0.7.5

Published by canvural over 3 years ago

Added

  • Support for sole method on Eloquent builder (#822) Thanks @ThibaudDauce

Changed

  • Cleanup call forwarding logic in extensions (#816)

Fixed

  • increment and decrement methods on query builder has side effects
larastan - 0.7.4

Published by canvural over 3 years ago

Fixed

  • Correct when and unless return value (#807, #811) Thanks @netpok and @BertvanHoekelen
larastan - 0.7.3

Published by canvural over 3 years ago

Added

  • Octane compatibility checking rule (#809)

OctaneCompatibilityRule

This is an optional rule that can check your application for Laravel Octane compatibility. You can enable it by adding checkOctaneCompatibility: true to your parameters array in the config file.

larastan - 0.7.2

Published by canvural over 3 years ago

Fixed

  • PHPStan 0.12.82 compatibility (#801)
larastan - 0.7.1

Published by canvural over 3 years ago

Added

  • Support for HigherOrderCollectionProxy (#781)
  • Support for Illuminate\Database\Query\Expression as column (#784)
  • Support for when and unless methods on Eloquent builder (#791)

Fixed

  • Fixed incorrectly inferring the return type of custom methods that return Collections (#751) Thanks @Josh-G

Changed

  • Fixed the phpstan/phpstan dependency to 0.12.81
larastan - 0.7.0

Published by canvural over 3 years ago

Changed

  • Updated phpstan/phpstan from v0.12.65 to v0.12.70 (#774) Thanks @chrisp-github

Added

  • BREAKING: Changed databaseMigrationsPath to be an array instead of a string, so it allows multiple directories. (#777) Thanks @haringsrob
  • Support for Log facade (#771) Thanks @Pe46dro
larastan - 0.6.13

Published by canvural over 3 years ago

Added

Changed

  • Use updated excludePaths parameter (#759) Thanks @erikgaal
  • Improve Pipes\Facades (#744) Thanks @szepeviktor

Fixed

  • Fixed insertOrIgnore typehint (#756) Thanks @bistory
  • Fix BelongsToMany stub's file name (#736) Thanks @szepeviktor
larastan - v0.6.12

Published by szepeviktor almost 4 years ago

Added

  • Support to Laravel 9 (060aa1d)
  • Support for Model::whereNotBetween() (#731)

Fixed

  • Search missing method also in templated model (#739)
larastan - 0.6.11

Published by canvural almost 4 years ago

Added

  • Support for autoloaded arrays (#725) Thanks @stancl

Fixed

  • Changed bootstrap file path (#727) Thanks @bepsvpt
  • Removed mixin pipe class (#704)
  • Don't return dummy method reflection for unknown methods (2581f3b)
larastan - 0.6.10

Published by canvural almost 4 years ago

Added

  • Added dd to list of early terminating functions (#710)

Fixed

  • Model::with() accepts array of Closure (#713) Thanks @kvas-damian
  • Use function map instead of calling newQuery on model (#717)
larastan - 0.6.8

Published by canvural almost 4 years ago

Added

  • Dynamic return type support for $request->file() method call.

Fixed

  • Fixed an issue with running tests on Windows (#696) Thanks @kwebble
  • Fixed autoloading of autoload-dev classes during bootstrap. (#696) Thanks @kwebble
larastan - 0.6.7

Published by canvural almost 4 years ago

Fixed

  • SoftDeletes methods on relations are no longer marked as undefined (#692) Thanks @jdrieghe
  • Generic model type is preserved when with method is used on a model instance.
larastan - 0.6.6

Published by canvural about 4 years ago

Added

  • Support for checking model properties on dynamic wheres (#686)