diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php index 5e9048808023d..da1873cb91856 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php @@ -32,11 +32,11 @@ class UniqueEntity extends Constraint public $message = 'This value is already used.'; public $service = 'doctrine.orm.validator.unique'; - public $em = null; - public $entityClass = null; + public $em; + public $entityClass; public $repositoryMethod = 'findBy'; public $fields = []; - public $errorPath = null; + public $errorPath; public $ignoreNull = true; /** diff --git a/src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php b/src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php index b4044d9c870db..397e84259a706 100644 --- a/src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php +++ b/src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php @@ -25,7 +25,7 @@ class MailerHandlerTest extends TestCase { /** @var MockObject|MailerInterface */ - private $mailer = null; + private $mailer; protected function setUp(): void { diff --git a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php index 850630ab7169f..fd2730b0f1d5a 100644 --- a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php +++ b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php @@ -59,7 +59,7 @@ class Configuration /** * @var string|null */ - private $logFile = null; + private $logFile; /** * @param int[] $thresholds A hash associating groups to thresholds diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/TextDescriptorTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/TextDescriptorTest.php index 55e410597344a..340defd8e61fa 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/TextDescriptorTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/TextDescriptorTest.php @@ -17,7 +17,7 @@ class TextDescriptorTest extends AbstractDescriptorTestCase { - private static $fileLinkFormatter = null; + private static $fileLinkFormatter; protected static function getDescriptor() { diff --git a/src/Symfony/Component/BrowserKit/Tests/TestClient.php b/src/Symfony/Component/BrowserKit/Tests/TestClient.php index bad2d47e22e32..c98c6502981e5 100644 --- a/src/Symfony/Component/BrowserKit/Tests/TestClient.php +++ b/src/Symfony/Component/BrowserKit/Tests/TestClient.php @@ -16,8 +16,8 @@ class TestClient extends AbstractBrowser { - protected $nextResponse = null; - protected $nextScript = null; + protected $nextResponse; + protected $nextScript; public function setNextResponse(Response $response) { diff --git a/src/Symfony/Component/BrowserKit/Tests/TestHttpClient.php b/src/Symfony/Component/BrowserKit/Tests/TestHttpClient.php index 184418b7b4477..afb0197c918b9 100644 --- a/src/Symfony/Component/BrowserKit/Tests/TestHttpClient.php +++ b/src/Symfony/Component/BrowserKit/Tests/TestHttpClient.php @@ -20,8 +20,8 @@ class TestHttpClient extends HttpBrowser { - protected $nextResponse = null; - protected $nextScript = null; + protected $nextResponse; + protected $nextScript; public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null) { diff --git a/src/Symfony/Component/Config/Tests/ConfigCacheTest.php b/src/Symfony/Component/Config/Tests/ConfigCacheTest.php index af0d348ddf4da..2c078fe3ff62c 100644 --- a/src/Symfony/Component/Config/Tests/ConfigCacheTest.php +++ b/src/Symfony/Component/Config/Tests/ConfigCacheTest.php @@ -18,7 +18,7 @@ class ConfigCacheTest extends TestCase { - private $cacheFile = null; + private $cacheFile; protected function setUp(): void { diff --git a/src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php b/src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php index 8747cbecf435b..f205a72e5561e 100644 --- a/src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php +++ b/src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php @@ -19,7 +19,7 @@ class ResourceCheckerConfigCacheTest extends TestCase { - private $cacheFile = null; + private $cacheFile; protected function setUp(): void { diff --git a/src/Symfony/Component/Console/Completion/CompletionInput.php b/src/Symfony/Component/Console/Completion/CompletionInput.php index 3ef8db5d1e07e..800b7235a9fd1 100644 --- a/src/Symfony/Component/Console/Completion/CompletionInput.php +++ b/src/Symfony/Component/Console/Completion/CompletionInput.php @@ -34,7 +34,7 @@ final class CompletionInput extends ArgvInput private $tokens; private $currentIndex; private $completionType; - private $completionName = null; + private $completionName; private $completionValue = ''; /** diff --git a/src/Symfony/Component/Console/Helper/Helper.php b/src/Symfony/Component/Console/Helper/Helper.php index 51fd11b260f71..77de9daba2ee6 100644 --- a/src/Symfony/Component/Console/Helper/Helper.php +++ b/src/Symfony/Component/Console/Helper/Helper.php @@ -21,7 +21,7 @@ */ abstract class Helper implements HelperInterface { - protected $helperSet = null; + protected $helperSet; /** * @return void diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php index 725870c69857a..79cb453ed4f28 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php @@ -23,22 +23,22 @@ class FilesystemTestCase extends TestCase /** * @var Filesystem */ - protected $filesystem = null; + protected $filesystem; /** * @var string */ - protected $workspace = null; + protected $workspace; /** * @var bool|null Flag for hard links on Windows */ - private static $linkOnWindows = null; + private static $linkOnWindows; /** * @var bool|null Flag for symbolic links on Windows */ - private static $symlinkOnWindows = null; + private static $symlinkOnWindows; public static function setUpBeforeClass(): void { diff --git a/src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php b/src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php index 2c23df7fd1785..14bb5e4f3090c 100644 --- a/src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php +++ b/src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php @@ -17,11 +17,11 @@ class MockSplFileInfo extends \SplFileInfo public const TYPE_FILE = 2; public const TYPE_UNKNOWN = 3; - private $contents = null; - private $mode = null; - private $type = null; - private $relativePath = null; - private $relativePathname = null; + private $contents; + private $mode; + private $type; + private $relativePath; + private $relativePathname; public function __construct($param) { diff --git a/src/Symfony/Component/Notifier/Tests/Mailer/DummyMailer.php b/src/Symfony/Component/Notifier/Tests/Mailer/DummyMailer.php index 3d4ddf62963bb..9c3f96402ed36 100644 --- a/src/Symfony/Component/Notifier/Tests/Mailer/DummyMailer.php +++ b/src/Symfony/Component/Notifier/Tests/Mailer/DummyMailer.php @@ -20,7 +20,7 @@ */ class DummyMailer implements MailerInterface { - private $sentMessage = null; + private $sentMessage; public function send(RawMessage $message, Envelope $envelope = null): void { diff --git a/src/Symfony/Component/Process/InputStream.php b/src/Symfony/Component/Process/InputStream.php index 25f574f703cb8..086f5a9edffc1 100644 --- a/src/Symfony/Component/Process/InputStream.php +++ b/src/Symfony/Component/Process/InputStream.php @@ -23,7 +23,7 @@ class InputStream implements \IteratorAggregate { /** @var callable|null */ - private $onEmpty = null; + private $onEmpty; private $input = []; private $open = true; diff --git a/src/Symfony/Component/Routing/Tests/RouterTest.php b/src/Symfony/Component/Routing/Tests/RouterTest.php index 0d87d26b4f8c3..460fe29eef0cb 100644 --- a/src/Symfony/Component/Routing/Tests/RouterTest.php +++ b/src/Symfony/Component/Routing/Tests/RouterTest.php @@ -25,9 +25,9 @@ class RouterTest extends TestCase { - private $router = null; + private $router; - private $loader = null; + private $loader; private $cacheDir; diff --git a/src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php b/src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php index ce0326d37949d..2bcaf70877f8c 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php @@ -29,7 +29,7 @@ class YamlFileLoader extends FileLoader * * @var array */ - protected $classes = null; + protected $classes; public function __construct(string $file) { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php index a8788e0dfdf6b..4f12a5a696ee7 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php @@ -119,7 +119,7 @@ public static function loadMetadata(ClassMetadata $metadata) class StaticLoaderEntity { - public static $invokedWith = null; + public static $invokedWith; public static function loadMetadata(ClassMetadata $metadata) {