Skip to content

Commit d04b381

Browse files
committed
Rename conflicting classes
1 parent 0636456 commit d04b381

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/Type/WebMozartAssert/data/array.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

3-
declare(strict_types=1);
3+
namespace PHPStan\Type\WebMozartAssert;
44

55
use Webmozart\Assert\Assert;
66

7-
class Foo
7+
class ArrayTest
88
{
99
/**
1010
* @param mixed $a

tests/Type/WebMozartAssert/data/collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Webmozart\Assert\Assert;
66

7-
class Foo
7+
class Collection
88
{
99

1010
/**

tests/Type/WebMozartAssert/data/data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Webmozart\Assert\Assert;
66

7-
class Foo
7+
class TypeInferenceTest
88
{
99

1010
public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n, $o, $p, $r, $s, ?int $t, ?int $u, $x, $aa, array $ab, $ac, $ad, $ae, $af, $ag, array $ah, $ai, $al, $am, $an, $ao, $ap, $aq, $ar, $as)
@@ -57,7 +57,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
5757
\PHPStan\Testing\assertType('array|Countable', $o);
5858

5959
Assert::isInstanceOf($p, self::class);
60-
\PHPStan\Testing\assertType('PHPStan\Type\WebMozartAssert\Foo', $p);
60+
\PHPStan\Testing\assertType('PHPStan\Type\WebMozartAssert\TypeInferenceTest', $p);
6161

6262
/** @var Foo|Bar $q */
6363
$q = doFoo();
@@ -107,7 +107,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
107107
\PHPStan\Testing\assertType('array{1, -2|2, -3|3}', $z);
108108

109109
Assert::subclassOf($aa, self::class);
110-
\PHPStan\Testing\assertType('class-string<PHPStan\Type\WebMozartAssert\Foo>|PHPStan\Type\WebMozartAssert\Foo', $aa);
110+
\PHPStan\Testing\assertType('class-string<PHPStan\Type\WebMozartAssert\TypeInferenceTest>|PHPStan\Type\WebMozartAssert\TypeInferenceTest', $aa);
111111

112112
Assert::allSubclassOf($ab, self::class);
113113
// should array<PHPStan\Type\WebMozartAssert\Foo>

tests/Type/WebMozartAssert/data/string.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Webmozart\Assert\Assert;
66

7-
class Foo
7+
class TestStrings
88
{
99

1010
public function length(string $a, string $b): void

0 commit comments

Comments
 (0)