Skip to content

Commit 13de6a0

Browse files
authored
Remove PHP 8.1 Check for including Enums in Tests (#48415)
1 parent 50300d6 commit 13de6a0

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

tests/Database/DatabaseEloquentModelTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
use ReflectionClass;
4646
use stdClass;
4747

48-
if (PHP_VERSION_ID >= 80100) {
49-
include 'Enums.php';
50-
}
48+
include_once 'Enums.php';
5149

5250
class DatabaseEloquentModelTest extends TestCase
5351
{

tests/Http/HttpRequestTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
2121
use Symfony\Component\HttpFoundation\Session\SessionInterface;
2222

23-
if (PHP_VERSION_ID >= 80100) {
24-
include 'Enums.php';
25-
}
23+
include_once 'Enums.php';
2624

2725
class HttpRequestTest extends TestCase
2826
{

tests/Integration/Database/EloquentModelEnumCastingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Illuminate\Support\Facades\DB;
1010
use Illuminate\Support\Facades\Schema;
1111

12-
include 'Enums.php';
12+
include_once 'Enums.php';
1313

1414
class EloquentModelEnumCastingTest extends DatabaseTestCase
1515
{

tests/Integration/Routing/ImplicitBackedEnumRouteBindingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Illuminate\Support\Facades\Route;
66
use Orchestra\Testbench\TestCase;
77

8-
include 'Enums.php';
8+
include_once 'Enums.php';
99

1010
class ImplicitBackedEnumRouteBindingTest extends TestCase
1111
{

tests/Routing/RoutingUrlGeneratorTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
1515
use Symfony\Component\Routing\Exception\RouteNotFoundException;
1616

17-
if (PHP_VERSION_ID >= 80100) {
18-
include_once 'Enums.php';
19-
}
17+
include_once 'Enums.php';
2018

2119
class RoutingUrlGeneratorTest extends TestCase
2220
{

tests/Support/SupportCollectionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
use Traversable;
2727
use UnexpectedValueException;
2828

29-
if (PHP_VERSION_ID >= 80100) {
30-
include_once 'Enums.php';
31-
}
29+
include_once 'Enums.php';
3230

3331
class SupportCollectionTest extends TestCase
3432
{

0 commit comments

Comments
 (0)