Skip to content

Releases: phpstan/phpstan-doctrine

0.12.26

13 Dec 11:59
Compare
Choose a tag to compare
  • ef925f6 - add LICENSE file
  • 1fe21ab - Use GitHub Actions instead of Travis CI
  • 716ea5f - Automatic release workflow

0.12.25

12 Dec 14:49
Compare
Choose a tag to compare
0.12.25

0.11.6

13 Sep 08:51
Compare
Choose a tag to compare

Fixed internal error in NewExprDynamicReturnTypeExtension (e5c4bcb), #73

0.11.5

29 May 06:04
Compare
Choose a tag to compare

Fixed compatibility with PHPStan 0.11.8 (#64), thanks @oallain!

0.11.4

21 May 16:38
Compare
Choose a tag to compare
  • Fix handling of custom Expr objects (9fac3a7), #62

0.11.3

19 May 19:00
Compare
Choose a tag to compare

0.11.2

11 Mar 11:53
Compare
Choose a tag to compare
  • Fixed false positive with an unknown field name: clashing of a repository's implemented method with the same name pattern as magic methods have (#56), #52, thanks @roverwolf!
  • Fixed return type of a repository's implemented method with the same name pattern as magic methods have (f7ce984), #57

0.11.1

13 Feb 13:22
Compare
Choose a tag to compare

PHPStan's Doctrine extension just got a lot better! To take advantage of the latest features, check out the README.

TL; DR: Include rules.neon in your phpstan.neon and provide a file that loads EntityManager instance from your application. Put the file path to doctrine.objectManagerLoader config key.

Thanks to @lcobucci and @mcfedr for their awesome work!

What's new

  • Static DQL validation! PHPStan can now validate syntax and even referenced fields and associations of your DQL queries. (❗️❗️❗️)
  • EntityManager::getRepository() return type now respects repositoryClass in entity class metadata.
  • Recognizes magic findBy*, findOneBy* and countBy* methods on EntityRepository.
  • Validates entity fields in repository findBy, findBy*, findOneBy, findOneBy*, count and countBy* method call arguments.
  • Interprets generic-like syntax EntityRepository<MyEntity> in phpDocs for further type inference of methods called on the repository.
  • Support for Doctrine ODM.

0.10

24 Jun 19:05
Compare
Choose a tag to compare

* Composer: replaced some requirements with conflicts - #29, thanks @lookyman!

0.9.1

04 Jan 14:46
Compare
Choose a tag to compare
  • Add dynamic return type extension for ObjectManager::merge() (c534c1d) - #16, thanks @stesie!
  • Add support getRepository call on ObjectManager interface (c1f3523) - #17, thanks @pauci!