Skip to content

Commit

Permalink
Add support for PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Apr 11, 2024
1 parent 9964b14 commit 69f6437
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,16 @@
}
],
"require": {
"php" : "^8.1",
"ext-json": "*"
"php" : "^8.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.52.1",
"phpstan/phpstan": "^1.10.64",
"friendsofphp/php-cs-fixer": "^3.53.0",
"phpstan/phpstan": "^1.10.66",
"phpstan/phpstan-deprecation-rules": "^1.1.4",
"phpstan/phpstan-phpunit": "^1.3.16",
"phpstan/phpstan-strict-rules": "^1.5.2",
"phpunit/phpunit": "^10.5.15",
"symfony/var-dumper": "^6.4.4"
"phpstan/phpstan-strict-rules": "^1.5.3",
"phpunit/phpunit": "^10.5.15 || ^11.1.1",
"symfony/var-dumper": "^6.4.6"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/PeriodFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ public function testFromRangeThrowsException(): void
}

#[DataProvider('provideDatePeriodOptions')]
public function testFromRange(int $option, Bounds $expectedBounds): void
public function testFromRange(int $options, Bounds $expectedBounds): void
{
$datePeriod = new DatePeriod(
new DateTime('2016-05-16T00:00:00Z'),
new DateInterval('P1D'),
new DateTime('2016-05-20T00:00:00Z'),
$option
$options
);

$period = Period::fromRange($datePeriod);
Expand Down

0 comments on commit 69f6437

Please sign in to comment.