Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 2 | public function __construct(string $thumbprint) |
|
24 | { |
||
25 | 2 | $this->_validateEncoding($thumbprint); |
|
26 | 2 | parent::__construct(self::PARAM_X509_CERTIFICATE_SHA1_THUMBPRINT, |
|
27 | 2 | $thumbprint); |
|
1 ignored issue
–
show
|
|||
28 | 2 | } |
|
30 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.