Skip to content

Commit

Permalink
7.4 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Dec 18, 2024
1 parent 30dd2c2 commit 0c3e960
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/FixerConfiguration/FixerOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ final class FixerOption implements FixerOptionInterface

private bool $isRequired;

private mixed $default = null;
/**
* @var null|mixed
*/
private $default = null;

/**
* @var null|list<string>
Expand Down
2 changes: 1 addition & 1 deletion src/FixerConfiguration/FixerOptionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class FixerOptionBuilder
/**
* @var null|mixed
*/
private mixed $default = null;
private $default = null;

private bool $isRequired = true;

Expand Down
4 changes: 0 additions & 4 deletions tests/Test/AbstractFixerWithAliasedOptionsTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ protected function doTest(string $expected, ?string $input = null, ?\SplFileInfo
parent::doTest($expected, $input, $file);

if (null !== $this->fixerWithAliasedConfig) {
if (!$this->fixerWithAliasedConfig instanceof AbstractFixer) {
throw new \LogicException();
}

$fixer = $this->fixer;
$fixerWithAliasedConfig = $this->fixerWithAliasedConfig;

Expand Down
2 changes: 1 addition & 1 deletion tests/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class UtilsTest extends TestCase
/**
* @var null|false|string
*/
private null|bool|string $originalValueOfFutureMode;
private $originalValueOfFutureMode;

protected function setUp(): void
{
Expand Down

0 comments on commit 0c3e960

Please sign in to comment.