Skip to content

Releases: psalm/psalm-plugin-doctrine

Fixed stubs loading

03 Apr 16:06
fd14fa8
Compare
Choose a tag to compare

Fixed

  • Plugin could fail to load stubs (#12)

EntityRepository::find(), shorter closures and Collection::exists() signature fix

14 Mar 20:19
8d6a5b5
Compare
Choose a tag to compare

Added

  • EntityRepository::find() and ObjectRepository::find() - thanks @jaikdean (#11)
  • Closures passed to Collection::map(), Collection::partition(), etc are now allowed to omit arguments

Fixed

  • Collection::exists() signature
  • Collections TKey generic parameter is now limited to array-key

Breaking changes

  • Minimum Psalm version is now 3.0.15

Add EntityManager stub and typecheck Collection push

01 Feb 20:43
d7fa773
Compare
Choose a tag to compare

Added

  • Collection push: now Psalm will check that you push a good item to the collection with $collection[] = $item
  • EntityManager stub (re-added)

Misc

  • Friendlier test infrastructure with Gherkin scenarios
  • Leaner dist archives

Fixed EntityManagerInterface and EntityRepository inheritance chain

27 Jan 21:53
811854e
Compare
Choose a tag to compare

Stub Expr::andX() and Expr::orX()

15 Jan 12:10
5cc815f
Compare
Choose a tag to compare

New features

  • Stubs for Expr::andX() and Expr::orX() (#4)

Promote signatures from EntityManager to EntityManagerInterface/ObjectManager

03 Jan 12:58
8156747
Compare
Choose a tag to compare

Thanks to @jaikdean (#3) a number of methods previously stubbed on EntityManager directly have been moved to EntityManagerInterface/ObjectManager, allowing to check more codebases.

Initial release

09 Dec 02:42
30a00e6
Compare
Choose a tag to compare

Adds some basic support for:

  • Collection
  • EntityManager
  • EntityRepository
  • Paginator