Skip to content

Commit

Permalink
Fix CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-rafalko committed Oct 30, 2020
1 parent 17372e9 commit 3649877
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Mutator/ProfileList.php
Expand Up @@ -436,7 +436,7 @@ final class ProfileList
'MBString' => Mutator\Extensions\MBString::class,
];

/** @var array<int, string>|null */
/** @var array<int, string>|null */
private static ?array $defaultProfileMutators = null;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/PhpParser/Visitor/ReflectionVisitor.php
Expand Up @@ -57,7 +57,7 @@ final class ReflectionVisitor extends NodeVisitorAbstract
public const FUNCTION_SCOPE_KEY = 'functionScope';
public const FUNCTION_NAME = 'functionName';

/** @var array<int, Node> */
/** @var array<int, Node> */
private array $functionScopeStack = [];

/**
Expand Down
Expand Up @@ -61,7 +61,7 @@ class MutationConfigBuilder extends ConfigBuilder

private ?string $originalBootstrapFile = null;

private ?\DOMDocument $dom = null;
private ?DOMDocument $dom = null;

public function __construct(
string $tmpDir,
Expand Down
4 changes: 2 additions & 2 deletions src/TestFramework/SafeDOMXPath.php
Expand Up @@ -48,9 +48,9 @@
*/
final class SafeDOMXPath
{
private \DOMDocument $document;
private DOMDocument $document;

private \DOMXPath $xPath;
private DOMXPath $xPath;

public function __construct(DOMDocument $document)
{
Expand Down
3 changes: 2 additions & 1 deletion tests/phpunit/Mutator/Removal/ArrayItemRemovalConfigTest.php
Expand Up @@ -39,6 +39,7 @@
use InvalidArgumentException;
use const PHP_INT_MAX;
use PHPUnit\Framework\TestCase;
use TypeError;

final class ArrayItemRemovalConfigTest extends TestCase
{
Expand Down Expand Up @@ -76,7 +77,7 @@ public function test_the_limit_must_be_an_integer(): void
new ArrayItemRemovalConfig(['limit' => 'foo']);

$this->fail();
} catch (\TypeError $exception) {
} catch (TypeError $exception) {
$this->assertSame(
'Typed property Infection\Mutator\Removal\ArrayItemRemovalConfig::$limit must be int, string used',
$exception->getMessage()
Expand Down

0 comments on commit 3649877

Please sign in to comment.