psalm-plugin-doctrine icon indicating copy to clipboard operation
psalm-plugin-doctrine copied to clipboard

Stubs to let Psalm understand Doctrine better

Results 35 psalm-plugin-doctrine issues
Sort by recently updated
recently updated
newest added

It returns a new collection by the contract: https://github.com/doctrine/collections/blob/1.6.x/lib/Doctrine/Common/Collections/Selectable.php#L24

Wow, Connection stub is obsolete for two years now :) Fixed according to https://github.com/doctrine/dbal/pull/4159 and https://github.com/doctrine/dbal/pull/4253

I get this error: ``` ERROR: MixedReturnTypeCoercion - ProfileRepository.php:22:16 - The declared return type 'array' for ProfileRepository::getProfiles is more specific than the inferred return type 'list' (see https://psalm.dev/197) * @return...

This plugin needs to be able to load doctrine configuration for functionality like checking entity types, findBy* methods, etc. Requires: - [x] stubbing the connection so that no database is...

enhancement

psalm 4.19.0 weirdan/doctrine-psalm-plugin v2.2.0 Symfony 6.0.3 PHP 8.1 ``` > ./vendor/bin/psalm --show-info=true Target PHP version: 8.1 (inferred from composer.json) Scanning files... Analyzing files... ░░░░░░░░░░░░░░░░░░░░░░░░░░Uncaught Exception: InvalidArgumentException Could not get class...

Since #94, this extension supports the scenario of checking a Collections's emptiness and then using `first()` and `last()` on that collection without worrying about the return type being `false`. This...

enhancement

Probably it will fix https://github.com/vimeo/psalm/issues/6773 and #89

I've wanted to have `ObjectRepository::findBy` type check the criteria for a while now, and I finally got around to working out a prototype. There are still several major problems: 1....