Skip to content

Commit

Permalink
Merge pull request #1649 from tarlepp/feat/psalm-plugin-doctrine
Browse files Browse the repository at this point in the history
Feat - Added `doctrine-psalm-plugin` for Psalm
  • Loading branch information
tarlepp committed Jan 28, 2022
2 parents e74d1fe + 3e3d782 commit b6412c1
Show file tree
Hide file tree
Showing 18 changed files with 139 additions and 65 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions psalm.xml
Expand Up @@ -19,6 +19,7 @@
<plugins>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin" />
<pluginClass class="Psalm\PhpUnitPlugin\Plugin" />
<pluginClass class="Weirdan\DoctrinePsalmPlugin\Plugin" />
</plugins>

<issueHandlers>
Expand Down
1 change: 0 additions & 1 deletion src/DataFixtures/ORM/LoadApiKeyData.php
Expand Up @@ -26,7 +26,6 @@
* @package App\DataFixtures\ORM
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*
* @psalm-suppress MissingConstructor
* @psalm-suppress PropertyNotSetInConstructor
*/
final class LoadApiKeyData extends Fixture implements OrderedFixtureInterface
Expand Down
1 change: 0 additions & 1 deletion src/DataFixtures/ORM/LoadRoleData.php
Expand Up @@ -22,7 +22,6 @@
* @package App\DataFixtures\ORM
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*
* @psalm-suppress MissingConstructor
* @psalm-suppress PropertyNotSetInConstructor
*/
final class LoadRoleData extends Fixture implements OrderedFixtureInterface
Expand Down
1 change: 0 additions & 1 deletion src/DataFixtures/ORM/LoadUserData.php
Expand Up @@ -25,7 +25,6 @@
* @package App\DataFixtures\ORM
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*
* @psalm-suppress MissingConstructor
* @psalm-suppress PropertyNotSetInConstructor
*/
final class LoadUserData extends Fixture implements OrderedFixtureInterface
Expand Down
1 change: 0 additions & 1 deletion src/DataFixtures/ORM/LoadUserGroupData.php
Expand Up @@ -25,7 +25,6 @@
* @package App\DataFixtures\ORM
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*
* @psalm-suppress MissingConstructor
* @psalm-suppress PropertyNotSetInConstructor
*/
final class LoadUserGroupData extends Fixture implements OrderedFixtureInterface
Expand Down
6 changes: 2 additions & 4 deletions src/Repository/Traits/RepositoryMethodsTrait.php
Expand Up @@ -105,10 +105,8 @@ public function findByAdvanced(
*/
RepositoryHelper::resetParameterCount();

/** @psalm-suppress InvalidTemplateParam */
$iterator = (new Paginator($queryBuilder, true))->getIterator();

return $iterator->getArrayCopy();
/** @psalm-suppress UndefinedInterfaceMethod */
return (new Paginator($queryBuilder, true))->getIterator()->getArrayCopy();
}

/**
Expand Down
10 changes: 5 additions & 5 deletions tools/01_phpunit/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tools/02_phpstan/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tools/03_psalm/composer.json
Expand Up @@ -6,7 +6,8 @@
"roave/security-advisories": "dev-latest",
"psalm/plugin-phpunit": "0.16.1",
"psalm/plugin-symfony": "3.1.2",
"vimeo/psalm": "4.18.1"
"vimeo/psalm": "4.18.1",
"weirdan/doctrine-psalm-plugin": "2.1.0"
},
"config": {
"platform": {
Expand Down
90 changes: 84 additions & 6 deletions tools/03_psalm/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tools/04_symplify/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tools/05_infection/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tools/06_php-coveralls/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b6412c1

Please sign in to comment.