REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.79 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc.fixed
Text
Base64
<?php class MyClass { public $var = null; protected $var = null; private $var = null; $var = null; var $var = null; static $var = null; public var $var = null; // Parse error. public $_var = null; protected $_var = null; private $_var = null; public $foo, $bar, $var = null; public $foo, $bar, $var = null; protected $foo, $bar; } class foo { const bar = <<<BAZ qux BAZ; } class ABC { public static $propA; protected static $propB; private static $propC; public static $propD; protected static $propE; private static /*comment*/ $propF; } class MyClass { public string $var = null; protected ?Folder\ClassName $var = null; var int $var = null; static int $var = null; private int $_var = null; public $foo, $bar, $var = null; public ?string $foo, $bar, $var = null; protected array $foo, $bar; } class MyClass { public string $var = null; protected ?Folder\ClassName $var = null; public int $var = null; public static int /*comment*/$var = null; } class ReadOnlyProp { public readonly int $foo, $bar, $var = null; protected readonly ?string $foo; readonly array $foo; public readonly int $wrongOrder1; protected readonly ?string $wrongOrder2; } class FinalProperties { final public int $foo, $bar, $var = null; final protected (D|N)|false $foo; final array $foo; FINAL public ?int $wrongOrder1; final protected static ?string $wrongOrder2; } class AsymmetricVisibility { private(set) int $foo, $bar, $var = 5; public private(set) readonly ?string $spaces; protected(set) array $unfixed; public protected(set) int $wrongOrder1; protected private(set) ?string $wrongOrder2; final protected private(set) static bool $correctOrder; final protected private(set) static bool $wrongOrder3; final protected private(set) static bool $wrongOrder4; final public protected(set) static bool $wrongOrder5; final public public(set) static bool $wrongOrder6; final protected private(set) static bool $wrongOrder7; final protected private(set) static bool $wrongOrder8; final public protected(set) static bool $wrongOrder9; final public public(set) static bool $wrongOrder10; final private(set) static bool $wrongOrder11; final protected(set) static bool $wrongOrder12; final public(set) static bool $wrongOrder13; } abstract class AbstractProperties { abstract public int $foo { get; } abstract protected (D|N)|false $foo { set; } abstract array $foo { get; } ABSTRACT public ?int $wrongOrder1 { set; } abstract protected ?string $wrongOrder2 { get; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ClassDeclarationUnitTest.inc
5.11 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ClassDeclarationUnitTest.inc.fixed
5.11 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ClassDeclarationUnitTest.php
2.37 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PropertyDeclarationUnitTest.inc
2.82 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PropertyDeclarationUnitTest.inc.fixed
2.79 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PropertyDeclarationUnitTest.php
2.47 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).