opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
PHP
➕ New
📤 Upload
✎ Editing:
ForbiddenFunctionsUnitTest.inc
← Back
<?php $size = sizeof($array); $size = count($array); delete($filepath); unset($filepath); $size = \sizeof($array); $size = \my\ns\sizeof('abc');($array); // No errors thrown for class methods. $size = MyClass::sizeof($array); $size = MyClass::count($array); MyClass::delete($filepath); MyClass::unset($filepath); $size = $class->sizeof($array); $size = $class->count($array); $class->delete($filepath); $class->unset($filepath); function delete() {} function unset() {} function sizeof() {} function count() {} trait DelProvider { public function delete() { //irrelevant } } class LeftSideTest { use DelProvider { delete as protected unsetter; } } class RightSideTest { use DelProvider { delete as delete; } } class RightSideVisTest { use DelProvider { delete as protected delete; DelProvider::delete insteadof delete; } } namespace Something\sizeof; $var = new /*comment*/ Sizeof(); class SizeOf implements Something {} function mymodule_form_callback(SizeOf $sizeof) { } $size = $class?->sizeof($array); #[SizeOf(10)] function doSomething() {} $size = sizeof /*comment*/ ($array);
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel