diff --git a/src/Mutator/ProfileList.php b/src/Mutator/ProfileList.php index 9c64a0b10..3ac48358e 100644 --- a/src/Mutator/ProfileList.php +++ b/src/Mutator/ProfileList.php @@ -436,7 +436,7 @@ final class ProfileList 'MBString' => Mutator\Extensions\MBString::class, ]; - /** @var array|null */ + /** @var array|null */ private static ?array $defaultProfileMutators = null; /** diff --git a/src/PhpParser/Visitor/ReflectionVisitor.php b/src/PhpParser/Visitor/ReflectionVisitor.php index c46adc922..1dae8d3a4 100644 --- a/src/PhpParser/Visitor/ReflectionVisitor.php +++ b/src/PhpParser/Visitor/ReflectionVisitor.php @@ -57,7 +57,7 @@ final class ReflectionVisitor extends NodeVisitorAbstract public const FUNCTION_SCOPE_KEY = 'functionScope'; public const FUNCTION_NAME = 'functionName'; - /** @var array */ + /** @var array */ private array $functionScopeStack = []; /** diff --git a/src/TestFramework/PhpUnit/Config/Builder/MutationConfigBuilder.php b/src/TestFramework/PhpUnit/Config/Builder/MutationConfigBuilder.php index 43c3f265a..bc9adb3a7 100644 --- a/src/TestFramework/PhpUnit/Config/Builder/MutationConfigBuilder.php +++ b/src/TestFramework/PhpUnit/Config/Builder/MutationConfigBuilder.php @@ -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, diff --git a/src/TestFramework/SafeDOMXPath.php b/src/TestFramework/SafeDOMXPath.php index ab2be3e51..a979f82f8 100644 --- a/src/TestFramework/SafeDOMXPath.php +++ b/src/TestFramework/SafeDOMXPath.php @@ -48,9 +48,9 @@ */ final class SafeDOMXPath { - private \DOMDocument $document; + private DOMDocument $document; - private \DOMXPath $xPath; + private DOMXPath $xPath; public function __construct(DOMDocument $document) { diff --git a/tests/phpunit/Mutator/Removal/ArrayItemRemovalConfigTest.php b/tests/phpunit/Mutator/Removal/ArrayItemRemovalConfigTest.php index 2fb526cd5..1bc9f3f0a 100644 --- a/tests/phpunit/Mutator/Removal/ArrayItemRemovalConfigTest.php +++ b/tests/phpunit/Mutator/Removal/ArrayItemRemovalConfigTest.php @@ -39,6 +39,7 @@ use InvalidArgumentException; use const PHP_INT_MAX; use PHPUnit\Framework\TestCase; +use TypeError; final class ArrayItemRemovalConfigTest extends TestCase { @@ -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()