Commit 7148052 1 parent e3e458c commit 7148052 Copy full SHA for 7148052
File tree 3 files changed +8
-13
lines changed
3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,7 @@ includes:
6
6
7
7
parameters :
8
8
level : 9
9
- phpVersion : 70200
9
+ phpVersion : 70400
10
10
11
11
paths :
12
12
- src
13
-
14
- ignoreErrors :
15
- - ' #Fetching class constant .+ of deprecated class Doctrine\\\w+.+ #'
Original file line number Diff line number Diff line change @@ -15,13 +15,11 @@ public function __construct(EntityManagerInterface $wrapped)
15
15
}
16
16
17
17
/**
18
- * {@inheritdoc}
19
- *
20
- * @psalm-param class-string<T> $className
21
- * @psalm-return EntityRepository<T>
22
- * @template T
18
+ * @template T of object
19
+ * @param class-string<T> $className
20
+ * @return EntityRepository<T>
23
21
*/
24
- public function getRepository ($ className )
22
+ public function getRepository ($ className ): EntityRepository
25
23
{
26
24
return $ this ->wrapped ->getRepository ($ className );
27
25
}
Original file line number Diff line number Diff line change 4
4
5
5
use Doctrine \DBAL \Connection ;
6
6
use Doctrine \ORM \EntityManagerInterface ;
7
- use Doctrine \ORM \ORMException ;
8
- use Doctrine \ORM \Proxy \Proxy ;
7
+ use Doctrine \ORM \Exception \ORMException ;
9
8
use Doctrine \Persistence \AbstractManagerRegistry ;
10
9
use Doctrine \Persistence \ObjectManager ;
10
+ use Doctrine \Persistence \Proxy ;
11
11
use Nette \DI \Container ;
12
12
13
13
class ManagerRegistry extends AbstractManagerRegistry
@@ -66,7 +66,7 @@ public function getAliasNamespace($alias): string
66
66
}
67
67
}
68
68
69
- throw ORMException:: unknownEntityNamespace ( $ alias );
69
+ throw new ORMException ( sprintf ( ' Unknown Entity namespace alias "%s" ' , $ alias) );
70
70
}
71
71
72
72
}
You can’t perform that action at this time.
0 commit comments