Skip to content

Commit 2a7e31b

Browse files
author
Andrew Zhdanovskih
committed
Add vimeo/psalm config
1 parent b97bce5 commit 2a7e31b

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

psalm.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="5"
4+
resolveFromConfigFile="true"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns="https://getpsalm.org/schema/config"
7+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
>
9+
<projectFiles>
10+
<directory name="src" />
11+
<ignoreFiles>
12+
<directory name="vendor" />
13+
</ignoreFiles>
14+
</projectFiles>
15+
</psalm>

src/Repository/TranslationRepository.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
namespace Creative\DbI18nBundle\Repository;
44

55
use Creative\DbI18nBundle\Entity\Translation;
6+
use Creative\DbI18nBundle\Interfaces\EntityInterface;
67
use Creative\DbI18nBundle\Interfaces\TranslationRepositoryInterface;
78
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
89
use Doctrine\Common\Collections\ArrayCollection;
10+
use Doctrine\Common\Collections\Collection;
911
use Doctrine\Persistence\ManagerRegistry;
1012

1113
/**
@@ -30,7 +32,8 @@ public function __construct(ManagerRegistry $registry)
3032
* @param string $domain
3133
* @param string $locale
3234
*
33-
* @return array|\Creative\DbI18nBundle\Interfaces\EntityInterface[]|\Doctrine\Common\Collections\Collection|mixed
35+
* @return EntityInterface[]|Collection
36+
* @psalm-return Collection<array-key, EntityInterface[]>
3437
*/
3538
public function findByDomainAndLocale(string $domain, string $locale)
3639
{

0 commit comments

Comments
 (0)