Skip to content

Commit

Permalink
Merge pull request #268 from Hackwar/patch-3
Browse files Browse the repository at this point in the history
Fixing list of magic methods for naming convention
  • Loading branch information
rdeutz committed Sep 17, 2020
2 parents 1ceeaf4 + 29c960d commit d6a62ea
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Joomla/Sniffs/NamingConventions/ValidFunctionNameSniff.php
Expand Up @@ -19,6 +19,31 @@
*/
class Joomla_Sniffs_NamingConventions_ValidFunctionNameSniff extends PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff
{
/**
* A list of all PHP magic methods.
*
* @var array
*/
protected $magicMethods = array(
'construct' => true,
'destruct' => true,
'call' => true,
'callstatic' => true,
'get' => true,
'set' => true,
'isset' => true,
'unset' => true,
'sleep' => true,
'wakeup' => true,
'serialize' => true,
'unserialize' => true,
'tostring' => true,
'invoke' => true,
'set_state' => true,
'clone' => true,
'debuginfo' => true,
);

/**
* Processes the tokens within the scope.
*
Expand Down

0 comments on commit d6a62ea

Please sign in to comment.