Skip to content

Commit

Permalink
Generic/CamelCapsFunctionName: add missing SoapClient method
Browse files Browse the repository at this point in the history
The list of `$methodsDoubleUnderscore` from the SoapClient extension was missing the `__getCookies()` method.

Ref: http://php.net/manual/en/class.soapclient.php

Includes unit test.

Includes ordering the list in alphabetic order.
  • Loading branch information
jrfnl committed Nov 1, 2018
1 parent 76f964f commit 164c78b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,18 @@ class CamelCapsFunctionNameSniff extends AbstractScopeSniff
* @var array
*/
protected $methodsDoubleUnderscore = [
'soapcall' => true,
'dorequest' => true,
'getcookies' => true,
'getfunctions' => true,
'getlastrequest' => true,
'getlastresponse' => true,
'getlastrequestheaders' => true,
'getlastresponse' => true,
'getlastresponseheaders' => true,
'getfunctions' => true,
'gettypes' => true,
'dorequest' => true,
'setcookie' => true,
'setlocation' => true,
'setsoapheaders' => true,
'soapcall' => true,
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,7 @@ $a = new class {
function __my_function() {}

};

class FooBar extends \SoapClient {
public function __getCookies() {}
}

0 comments on commit 164c78b

Please sign in to comment.