Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Apply no_null_property_initialization PHP-CS-Fixer rule #49896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class MailerHandlerTest extends TestCase
{
/** @var MockObject|MailerInterface */
private $mailer = null;
private $mailer;

protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Configuration
/**
* @var string|null
*/
private $logFile = null;
private $logFile;

/**
* @param int[] $thresholds A hash associating groups to thresholds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class TextDescriptorTest extends AbstractDescriptorTestCase
{
private static $fileLinkFormatter = null;
private static $fileLinkFormatter;

protected static function getDescriptor()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/BrowserKit/Tests/TestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

class TestClient extends AbstractBrowser
{
protected $nextResponse = null;
protected $nextScript = null;
protected $nextResponse;
protected $nextScript;

public function setNextResponse(Response $response)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/BrowserKit/Tests/TestHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Config/Tests/ConfigCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class ConfigCacheTest extends TestCase
{
private $cacheFile = null;
private $cacheFile;

protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ResourceCheckerConfigCacheTest extends TestCase
{
private $cacheFile = null;
private $cacheFile;

protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class CompletionInput extends ArgvInput
private $tokens;
private $currentIndex;
private $completionType;
private $completionName = null;
private $completionName;
private $completionValue = '';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Helper/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
abstract class Helper implements HelperInterface
{
protected $helperSet = null;
protected $helperSet;

/**
* @return void
Expand Down
8 changes: 4 additions & 4 deletions src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
10 changes: 5 additions & 5 deletions src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class DummyMailer implements MailerInterface
{
private $sentMessage = null;
private $sentMessage;

public function send(RawMessage $message, Envelope $envelope = null): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/InputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class InputStream implements \IteratorAggregate
{
/** @var callable|null */
private $onEmpty = null;
private $onEmpty;
private $input = [];
private $open = true;

Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Routing/Tests/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

class RouterTest extends TestCase
{
private $router = null;
private $router;

private $loader = null;
private $loader;

private $cacheDir;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class YamlFileLoader extends FileLoader
*
* @var array
*/
protected $classes = null;
protected $classes;

public function __construct(string $file)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down