REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.52 KB
Close
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc
Text
Base64
<?php class MyClass { public static function func1() { $value = 'hello'; $newValue = array($this->func2()); $result = $this->getValue($value); return $this->setValue($result); } public static function /* */ func1() { return $this->setValue($result); } public static function func1() { return $this->setValue($result); } public function func1() { $value = 'hello'; $newValue = array($this->func2()); $result = $this->getValue($value); return $this->setValue($result); } function func1() { $value = 'hello'; $newValue = array($this->func2()); $result = $this->getValue($value); return $this->setValue($result); } public static function func1() { return function() { echo $this->name; }; } private static function func1(array $data) { return new class() { private $data; public function __construct(array $data) { $this->data = $data; } }; } public function getAnonymousClass() { return new class() { public static function something() { $this->doSomething(); } }; } } trait MyTrait { public static function myFunc() { $this->doSomething(); } } $b = new class() { public static function myFunc() { $this->doSomething(); } public static function other() { return fn () => $this->name; } public static function anonClassUseThis() { return new class($this) { public function __construct($class) { } }; } public static function anonClassAnotherThis() { return new class() { public function __construct() { $this->id = 1; } }; } public static function anonClassNestedUseThis() { return new class(new class($this) {}) { }; } public static function anonClassNestedAnotherThis() { return new class(new class() { public function __construct() { $this->id = 1; } }) { }; } public static function thisMustBeLowercase() { $This = 'hey'; return $This; } } enum MyEnum { private function notStatic () { $this->doSomething(); } public static function myFunc() { $this->doSomething(); } }
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
MemberVarScopeUnitTest.inc
1.88 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
MemberVarScopeUnitTest.php
1.64 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
MethodScopeUnitTest.inc
943 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
MethodScopeUnitTest.php
1.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
StaticThisUsageUnitTest.inc
2.52 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
StaticThisUsageUnitTest.php
1.59 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).