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 df5c8bc commit b315523
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Fixer/Phpdoc/PhpdocAlignFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ final class PhpdocAlignFixer extends AbstractFixer implements ConfigurableFixerI
*
* @var array<string, int>|int
*/
private array|int $spacing = 1;
private $spacing = 1;

public function getDefinition(): FixerDefinitionInterface
{
Expand Down
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 mixed
*/
private $default;

/**
* @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;

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 b315523

Please sign in to comment.