File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 3
3
namespace Creative \DbI18nBundle \Repository ;
4
4
5
5
use Creative \DbI18nBundle \Entity \Translation ;
6
+ use Creative \DbI18nBundle \Interfaces \EntityInterface ;
6
7
use Creative \DbI18nBundle \Interfaces \TranslationRepositoryInterface ;
7
8
use Doctrine \Bundle \DoctrineBundle \Repository \ServiceEntityRepository ;
8
9
use Doctrine \Common \Collections \ArrayCollection ;
10
+ use Doctrine \Common \Collections \Collection ;
9
11
use Doctrine \Persistence \ManagerRegistry ;
10
12
11
13
/**
@@ -30,7 +32,8 @@ public function __construct(ManagerRegistry $registry)
30
32
* @param string $domain
31
33
* @param string $locale
32
34
*
33
- * @return array|\Creative\DbI18nBundle\Interfaces\EntityInterface[]|\Doctrine\Common\Collections\Collection|mixed
35
+ * @return EntityInterface[]|Collection
36
+ * @psalm-return Collection<array-key, EntityInterface[]>
34
37
*/
35
38
public function findByDomainAndLocale (string $ domain , string $ locale )
36
39
{
You can’t perform that action at this time.
0 commit comments