Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Jan 19, 2024
1 parent 5ec98aa commit b1bf847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/benchmark.yml

This file was deleted.

8 changes: 4 additions & 4 deletions tests/Support/DataTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ function resolveDataType(object $class, string $property = 'property'): DataType
});

it('can deduce a nullable intersection type definition', function () {
$type = resolveDataType(new class () {
public (DateTime & DateTimeImmutable)|null $property;
});
$code = '$type = resolveDataType(new class () {public (DateTime & DateTimeImmutable)|null $property;});';

eval($code); // We support PHP 8.1 which craches on this

expect($type)
->isOptional->toBeFalse()
Expand All @@ -200,7 +200,7 @@ function resolveDataType(object $class, string $property = 'property'): DataType

expect($type->type)
->toBeInstanceOf(IntersectionType::class);
});
})->skipOnPhp('<8.2');

it('can deduce a mixed type', function () {
$type = resolveDataType(new class () {
Expand Down

0 comments on commit b1bf847

Please sign in to comment.