Skip to content

1.5.0

Latest

Choose a tag to compare

@janedbal janedbal released this 03 Dec 09:15
Immutable release. Only release title and notes can be modified.
0ea1262

New features:

  • Latte support (#490, @Roman3349)
    • View objects passed as template parameters, also transitively referenced ones
    • Public properties of parameter objects and typed templates
    • #[TemplateFilter], #[TemplateFunction] methods
  • Symfony: #[AsCommand] on methods (#452, @mjanser, #454, #455)
    • Constructor, #[MapInput] DTO properties, #[Interact] methods and backed enum parameters of such commands
  • Laravel: test case lifecycle (#453, @MizouziE)
    • setUp{Trait}/tearDown{Trait} hooks, database settings like $connectionsToTransact or $seeder
  • Doctrine: constructors called by the DQL NEW operator (#495)

Improvements:

  • Symfony:
    • Detect implicit getDefaultPriority() of services in #[AutowireIterator] and #[TaggedIterator] (#482)
    • Resolve #[MapInput] of an inherited __invoke command (#461)
    • Resolve inherited #[Interact] and nullable #[MapInput] of commands (#463)
    • Follow property and accessor PhpDoc when walking #[MapRequestPayload] DTOs (#485, @akankov)
  • Laravel:
    • Detect route actions on Router instances and in uses arrays (#462, @Cayan)
    • Detect route actions registered with options() (#465)
    • Resolve route controllers with a leading backslash (#466)
    • Detect EventServiceProvider::$listen and $subscribe (#483, @Cayan)
  • Doctrine: detect doctrine.event_listener tags in the Symfony container XML (#481)
  • Nette: detect statements like App\Foo() and static factories like App\Foo::create() in the DI container config (#492, @Roman3349)

Fixes:

  • Fix "DCD cache file not found" after a PHPStan editor mode run (#501, fixes #476)
  • Vendor: treat members from any PHAR as vendor, e.g. phpstan.phar outside of vendor/ (#486, @ondrejmirtes)
  • Symfony: mark enum cases of command parameters as used only for #[Argument] and #[Option] (#460)

Internals:

  • Test on PHP 8.6 (#484, @JanTvrdik)
  • Readme: define which libraries get built-in support (#457)
  • Readme: partial analysis formatter is not needed since PHPStan 2.3.6 (#493)