REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.48 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc.fixed
Text
Base64
<?php $instance1 = new class extends \Foo implements \HandleableInterface { }; $instance2 = new class extends \Foo implements \ArrayAccess, \Countable, \Serializable { }; $instance3 = new class { }; $instance4 = new class ($arg) { }; $instance5 = new class { }; $instance6 = new class { }; // Bad $instance1 = new class ($arg) {}; $instance2 = new class ($one, $two) {}; $instance3 = new class ( $one, $two, $three, $four ) {}; $instance4 = new class extends \Foo { }; $instance5 = new class ( $one, $two, $three ) extends \Foo implements \HandleableInterface {}; $instance6 = new class extends \Foo implements \HandleableInterface { // Class content }; $instance7 = new class extends \Foo implements \One, \Two, \Three, \Four, \Five { // Class content }; if ($foo) { $instance8 = new class extends \Foo implements \One, \Five { // Class content }; } $instance9 = new class ( $one, $two ) extends \Foo implements \One { // Class content }; $instance10 = new class {}; $foo->bar( new class implements Bar { // ... }, ); foo(new class { }); // Issue #3790: OpenBraceSameLine fixer should not remove open brace. $instance = new class () extends SomeClass implements SomeInterface { public function __construct() {} }; // PHP 8.3 readonly anonymous classes. $anon = new readonly class {}; $anon = new readonly class {}; $anon = new readonly class {};
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AnonClassDeclarationUnitTest.inc
1.49 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
AnonClassDeclarationUnitTest.inc.fixed
1.48 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
AnonClassDeclarationUnitTest.php
1.86 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
ClassInstantiationUnitTest.inc
1.26 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
ClassInstantiationUnitTest.inc.fixed
1.30 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
ClassInstantiationUnitTest.php
1.69 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
ClosingBraceUnitTest.inc
555 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ClosingBraceUnitTest.php
1.42 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
OpeningBraceSpaceUnitTest.inc
432 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OpeningBraceSpaceUnitTest.inc.fixed
423 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OpeningBraceSpaceUnitTest.php
1.44 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).