Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 0269bb5

Browse files
committed
No need for Paratest to show the bug
1 parent b8c175a commit 0269bb5

File tree

16 files changed

+102
-143
lines changed

16 files changed

+102
-143
lines changed

Makefile

Lines changed: 0 additions & 26 deletions
This file was deleted.

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"php": "~8.1.0"
44
},
55
"require-dev": {
6-
"brianium/paratest": "^6.4.1",
76
"phpunit/phpunit": "^9.5.11"
87
},
98
"autoload": {

lib/A.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace My;
6+
7+
class A
8+
{
9+
public function inArray(): bool
10+
{
11+
return \in_array(1, [
12+
AType::OPT,
13+
], true);
14+
}
15+
}

lib/Zzz.php renamed to lib/AType.php

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

55
namespace My;
66

7-
class Zzz
7+
class AType
88
{
9+
public const OPT = 1;
910
}

lib/Aaa.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

lib/B.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace My;
6+
7+
class B
8+
{
9+
public function inArray(): bool
10+
{
11+
return \in_array(1, [
12+
BType::OPT,
13+
], true);
14+
}
15+
}

lib/AaaSecond.php renamed to lib/BType.php

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

55
namespace My;
66

7-
class AaaSecond
7+
class BType
88
{
9+
public const OPT = 1;
910
}

lib/C.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace My;
6+
7+
class C
8+
{
9+
public function inArray(): bool
10+
{
11+
return \in_array(1, [
12+
CType::OPT,
13+
], true);
14+
}
15+
}

lib/CType.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace My;
6+
7+
class CType
8+
{
9+
public const OPT = 1;
10+
}

lib/MyType.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)