File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
tests/PHPStan/Analyser/data Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
namespace Doctrine \ORM {
4
- class EntityManager
4
+ class EntityManagerParamClosureThis
5
5
{
6
6
7
7
public function transactional (callable $ cb ): void {
@@ -11,7 +11,7 @@ public function transactional(callable $cb): void {
11
11
}
12
12
}
13
13
14
- namespace MyFunction {
14
+ namespace MyFunctionClosureThis {
15
15
function doFoo (callable $ cb ): void {
16
16
17
17
}
@@ -20,22 +20,22 @@ function doFoo(callable $cb): void {
20
20
namespace ParamClosureThisStubs
21
21
{
22
22
23
- use Doctrine \ORM \EntityManager ;
23
+ use Doctrine \ORM \EntityManagerParamClosureThis ;
24
24
use function PHPStan \Testing \assertType ;
25
25
26
26
class Foo
27
27
{
28
- public function doFoo (EntityManager $ em ): void
28
+ public function doFoo (EntityManagerParamClosureThis $ em ): void
29
29
{
30
30
$ em ->transactional (function () {
31
- assertType (EntityManager ::class, $ this );
31
+ assertType (EntityManagerParamClosureThis ::class, $ this );
32
32
});
33
33
}
34
34
35
35
public function doFoo2 (): void
36
36
{
37
- \MyFunction \doFoo (function () {
38
- assertType (\MyFunction \Foo::class, $ this );
37
+ \MyFunctionClosureThis \doFoo (function () {
38
+ assertType (\MyFunctionClosureThis \Foo::class, $ this );
39
39
});
40
40
}
41
41
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
namespace Doctrine\ORM {
4
- class EntityManager
4
+ class EntityManagerParamClosureThis
5
5
{
6
6
7
7
/**
@@ -14,7 +14,7 @@ namespace Doctrine\ORM {
14
14
}
15
15
}
16
16
17
- namespace MyFunction {
17
+ namespace MyFunctionClosureThis {
18
18
19
19
class Foo
20
20
{
You can’t perform that action at this time.
0 commit comments