We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ceeaf4 + 29c960d commit d6a62eaCopy full SHA for d6a62ea
Joomla/Sniffs/NamingConventions/ValidFunctionNameSniff.php
@@ -19,6 +19,31 @@
19
*/
20
class Joomla_Sniffs_NamingConventions_ValidFunctionNameSniff extends PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff
21
{
22
+ /**
23
+ * A list of all PHP magic methods.
24
+ *
25
+ * @var array
26
+ */
27
+ protected $magicMethods = array(
28
+ 'construct' => true,
29
+ 'destruct' => true,
30
+ 'call' => true,
31
+ 'callstatic' => true,
32
+ 'get' => true,
33
+ 'set' => true,
34
+ 'isset' => true,
35
+ 'unset' => true,
36
+ 'sleep' => true,
37
+ 'wakeup' => true,
38
+ 'serialize' => true,
39
+ 'unserialize' => true,
40
+ 'tostring' => true,
41
+ 'invoke' => true,
42
+ 'set_state' => true,
43
+ 'clone' => true,
44
+ 'debuginfo' => true,
45
+ );
46
+
47
/**
48
* Processes the tokens within the scope.
49
*
0 commit comments