Skip to content

Commit 8ec4036

Browse files
committed
Fix build
1 parent c8e1c8c commit 8ec4036

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/PHPStan/Analyser/data/param-closure-this-stubs.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
namespace Doctrine\ORM {
4-
class EntityManager
4+
class EntityManagerParamClosureThis
55
{
66

77
public function transactional(callable $cb): void {
@@ -11,7 +11,7 @@ public function transactional(callable $cb): void {
1111
}
1212
}
1313

14-
namespace MyFunction {
14+
namespace MyFunctionClosureThis {
1515
function doFoo(callable $cb): void {
1616

1717
}
@@ -20,22 +20,22 @@ function doFoo(callable $cb): void {
2020
namespace ParamClosureThisStubs
2121
{
2222

23-
use Doctrine\ORM\EntityManager;
23+
use Doctrine\ORM\EntityManagerParamClosureThis;
2424
use function PHPStan\Testing\assertType;
2525

2626
class Foo
2727
{
28-
public function doFoo(EntityManager $em): void
28+
public function doFoo(EntityManagerParamClosureThis $em): void
2929
{
3030
$em->transactional(function () {
31-
assertType(EntityManager::class, $this);
31+
assertType(EntityManagerParamClosureThis::class, $this);
3232
});
3333
}
3434

3535
public function doFoo2(): void
3636
{
37-
\MyFunction\doFoo(function () {
38-
assertType(\MyFunction\Foo::class, $this);
37+
\MyFunctionClosureThis\doFoo(function () {
38+
assertType(\MyFunctionClosureThis\Foo::class, $this);
3939
});
4040
}
4141

tests/PHPStan/Analyser/data/param-closure-this-stubs.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
namespace Doctrine\ORM {
4-
class EntityManager
4+
class EntityManagerParamClosureThis
55
{
66

77
/**
@@ -14,7 +14,7 @@ namespace Doctrine\ORM {
1414
}
1515
}
1616

17-
namespace MyFunction {
17+
namespace MyFunctionClosureThis {
1818

1919
class Foo
2020
{

0 commit comments

Comments
 (0)