opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Docs
/
Scope
➕ New
📤 Upload
✎ Editing:
StaticThisUsageStandard.xml
← Back
<documentation title="Static This Usage"> <standard> <![CDATA[ Static methods should not use $this. ]]> </standard> <code_comparison> <code title="Valid: Using self:: to access static variables."> <![CDATA[ class Foo { <em>static</em> function bar() { return <em>self</em>::$staticMember; } } ]]> </code> <code title="Invalid: Using $this-> to access static variables."> <![CDATA[ class Foo { <em>static</em> function bar() { return <em>$this</em>->$staticMember; } } ]]> </code> </code_comparison> </documentation>
💾 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