Skip to content

Commit a07ffe7

Browse files
nicolas-grekasfabpot
authored andcommitted
Bump minimum version of PHP to 8.1
1 parent 8bdf056 commit a07ffe7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Command/LintCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function __construct(string $name = null, callable $directoryIteratorProv
4646
{
4747
parent::__construct($name);
4848

49-
$this->directoryIteratorProvider = null === $directoryIteratorProvider || $directoryIteratorProvider instanceof \Closure ? $directoryIteratorProvider : \Closure::fromCallable($directoryIteratorProvider);
50-
$this->isReadableProvider = null === $isReadableProvider || $isReadableProvider instanceof \Closure ? $isReadableProvider : \Closure::fromCallable($isReadableProvider);
49+
$this->directoryIteratorProvider = null === $directoryIteratorProvider ? null : $directoryIteratorProvider(...);
50+
$this->isReadableProvider = null === $isReadableProvider ? null : $isReadableProvider(...);
5151
}
5252

5353
/**

Tests/InlineTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,6 @@ public function testDumpDateTime($dateTime, $expected)
584584
$this->assertSame($expected, Inline::dump($dateTime));
585585
}
586586

587-
/**
588-
* @requires PHP 8.1
589-
*/
590587
public function testDumpUnitEnum()
591588
{
592589
$this->assertSame("!php/const Symfony\Component\Yaml\Tests\Fixtures\FooUnitEnum::BAR", Inline::dump(FooUnitEnum::BAR));

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=8.0.2",
19+
"php": ">=8.1",
2020
"symfony/polyfill-ctype": "^1.8"
2121
},
2222
"require-dev": {

0 commit comments

Comments
 (0)