Skip to content

Commit

Permalink
Remove checks for PHP8.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Jan 7, 2024
1 parent 7a694a4 commit c2a9203
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
4 changes: 0 additions & 4 deletions tests/integration/database/midgard/ORMTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,6 @@ public function testToArrayWithNullRelatedRecord(): void
*/
public function testEnumCasting(): void
{
if (PHP_VERSION_ID < 80100) {
$this->markTestSkipped('This feature requires PHP 8.1+');
}

$enum = Enum::get(1);

$this->assertIsObject($enum->value);
Expand Down
4 changes: 0 additions & 4 deletions tests/unit/classes/preload/PreloaderGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@ public function testGeneratePreloaderWithClassWithTypedUnionProperties(): void
*/
public function testGeneratePreloaderWithClassWithTypedIntersectionProperties(): void
{
if (PHP_VERSION_ID < 80100) {
$this->markTestSkipped('This feature requires PHP 8.1+');
}

$classPath = __DIR__;

$expectedClassLoader = <<<EOF
Expand Down
8 changes: 0 additions & 8 deletions tests/unit/database/query/compilers/BaseCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2048,10 +2048,6 @@ public function testDateTimeParameter(): void
*/
public function testEnumParameter(): void
{
if (PHP_VERSION_ID < 80100) {
$this->markTestSkipped('This feature requires PHP 8.1+');
}

$query = $this->getBuilder();

$query->where('foo', '=', FooEnum::ONE);
Expand All @@ -2067,10 +2063,6 @@ public function testEnumParameter(): void
*/
public function testBackedEnumParameter(): void
{
if (PHP_VERSION_ID < 80100) {
$this->markTestSkipped('This feature requires PHP 8.1+');
}

$query = $this->getBuilder();

$query->where('foo', '=', BarEnum::ONE);
Expand Down
10 changes: 0 additions & 10 deletions tests/unit/validator/rules/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ enum BarEnum: int
*/
class EnumTest extends TestCase
{
/**
*{@inheritDoc}
*/
public function setup(): void
{
if (PHP_VERSION_ID < 80100) {
$this->markTestSkipped('This feature requires PHP 8.1+');
}
}

/**
*
*/
Expand Down

0 comments on commit c2a9203

Please sign in to comment.