NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1082 most downloaded on Packagist
Stubs to let Psalm understand Doctrine better
Latest stable
v2.11.1
Last release 1 months ago
20 Oct 2026
Ships unpredictably
gaps range from 8 days to 1.7 years
Nearly every release is documented
notes for 40 of 41 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
41 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Move tests to PHPUnit 10+ by @danog in https://github.com/psalm/psalm-plugin-doctrine/pull/162
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.11.0...v2.11.1
Psalm 7 support: requires vimeo/psalm ^7 and psalm/psalm-plugin-api ^0.4.
Psalm 7 support: requires vimeo/psalm ^7 and psalm/psalm-plugin-api ^0.4.
Fix typo in psalm-suppress annotation by @luigif in https://github.com/psalm/psalm-plugin-doctrine/pull/160
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.10.0...v2.10.1
This release adds support for Psalm v6.
This release adds support for Psalm v6.
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.9.0...v2.10.0
Replace deprecated ::set-output by @weirdan in https://github.com/psalm/psalm-plugin-doctrine/pull/140
::set-output by @weirdan in https://github.com/psalm/psalm-plugin-doctrine/pull/140Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.8.1...v2.9.0
Fix new EntityManager#refresh in Doctrine ORM 2.14 by @michnovka in https://github.com/psalm/psalm-plugin-doctrine/pull/136
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.8.0...v2.8.1
Change Paginator template to covariant by @VincentLanglet in https://github.com/psalm/psalm-plugin-doctrine/pull/137
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.7.0...v2.8.0
Use more precise count return type by @VincentLanglet in https://github.com/psalm/psalm-plugin-doctrine/pull/134
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.6.0...v2.7.0
feat: add support for psalm 5 by @nesl247 in https://github.com/psalm/psalm-plugin-doctrine/pull/133
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.5.0...v2.6.0
Remove version constraint for phpstan/phpdoc-parser by @gndk in https://github.com/psalm/psalm-plugin-doctrine/pull/128
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.4.0...v2.5.0
Return a generic array in Query by @2e3s in https://github.com/psalm/psalm-plugin-doctrine/pull/115
Collection ::first() and ::last() return type provider. by @AndrolGenhald in https://github.com/psalm/psalm-plugin-doctrine/pull/119Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.3.0...v2.4.0
remove totallyTyped by @orklah in https://github.com/psalm/psalm-plugin-doctrine/pull/112
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.2.0...v2.3.0
Update Connection.phpstub by @VincentLanglet in https://github.com/psalm/psalm-plugin-doctrine/pull/110
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.1.0...v2.2.0
Doctrine Collections ExpressionBuilder stubs by @ddebin in https://github.com/psalm/psalm-plugin-doctrine/pull/103
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.0.1...v2.1.0
Fix doctrine collections uses by @jordisala1991 in https://github.com/psalm/psalm-plugin-doctrine/pull/101
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v2.0.0...v2.0.1
Fix doctrine/persistence compatibility by @enumag in https://github.com/psalm/psalm-plugin-doctrine/pull/96
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/v1.2.0...v2.0.0
Add psalm-mutation-free annotation by @VincentLanglet in https://github.com/psalm/psalm-plugin-doctrine/pull/99
Full Changelog: https://github.com/psalm/psalm-plugin-doctrine/compare/1.1.0...v1.2.0
Refined Collection::first() and Collection::last() return types after checking Collection::isEmpty()
Special thanks to @VincentLanglet for these changes
Added ----- - #61 Added taint sinks for DBAL\Connection (@adrienlucas) - #67 #66 Allow pushed to ArrayCollection - #64 #63 EntityRepository::matching(
Changed stub files extension to hide them from some IDEs
Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #57 Allow classes extendin
Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #55 Fixed EntityManager::g
Added ----- - Nothing. Changed ------- - #54 EntityManager::getReference() return type changed to nullable (thanks @simPod) Deprecated ---------- - No
Added ----- - #48 Added stub for Doctrine\DBAL\Query\Expression\ExpressionBuilder (thanks @mpolyakovsky) Changed ------- - Nothing. Deprecated -------
@orklah and @mpolyakovsky contributed a number of improvements to the test suite and other misc fixes
@orklah and @mpolyakovsky contributed a number of improvements to the test suite and other misc fixes
@orklah and @mpolyakovsky contributed a number of improvements to the test suite and other misc fixes
Added ----- - #29 Added ClassMetadataInfo::$sequenceGeneratorDefinition Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- -
Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #28 #27 Expr\Comparison is
Added ----- - #26 Support for variadic arguments of QueryBuilder methods (thanks @2e3s) Changed ------- - Nothing. Deprecated ---------- - Nothing. Re
Collection::slice() $offset parameter accepts int only
Collection::slice() $offset parameter accepts int only (#25)Doctrine\ORM\Mapping\ClassMetadataInfo::$table type - thanks @zerkms
Doctrine\ORM\Mapping\ClassMetadataInfo::$table type - thanks @zerkms (#23)Collection::partition() closure type
Collection::partition() closure type (#22)Support for ServiceEntityRepository (#19
Stubbed ObjectRepository::findAll(), ObjectRepository::findBy() and ObjectRepository::findOneBy() - thanks @jaikdean
ObjectRepository::findAll(), ObjectRepository::findBy() and ObjectRepository::findOneBy() - thanks @jaikdean (#17)ClassMetadata::getAssociationTargetClass return type - thanks @jaikdean
ClassMetadata::getAssociationTargetClass return type - thanks @jaikdean (#14)Plugin could fail to load stubs
Nothing published for this version
Stubs for Expr::andX() and Expr::orX()
Expr::andX() and Expr::orX() (#4)Thanks to @jaikdean (#3) a number of methods previously stubbed on EntityManager directly have been moved to EntityManagerInterface/ObjectManager, all
Thanks to @jaikdean (#3) a number of methods previously stubbed on EntityManager directly have been moved to EntityManagerInterface/ObjectManager, allowing to check more codebases.
Adds some basic support for: * Collection * EntityManager * EntityRepository * Paginator
Adds some basic support for:
CollectionEntityManagerEntityRepositoryPaginatorEntityRepository::find() and ObjectRepository::find() - thanks @jaikdean
EntityRepository::find() and ObjectRepository::find() - thanks @jaikdean (#11)Collection::map(), Collection::partition(), etc are now allowed to omit argumentsCollection::exists() signatureCollections TKey generic parameter is now limited to array-keyCollection push: now Psalm will check that you push a good item to the collection with $collection[] = $item
$collection[] = $itemEntityManager stub (re-added)One column per quarter.