Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function build(LikeConditionInterface $expression, array &$params = []): string |
||
38 | { |
||
39 | if (!isset($this->escapingReplacements['\\'])) { |
||
40 | /* |
||
41 | * Different pdo_oci8 versions may or may not implement PDO::quote(), so {@see Quoter::quoteValue()} may or |
||
42 | * may not quote \. |
||
43 | */ |
||
44 | $this->escapingReplacements['\\'] = substr((string) $this->queryBuilder->quoter()->quoteValue('\\'), 1, -1); |
||
45 | } |
||
46 | |||
47 | return parent::build($expression, $params); |
||
48 | } |
||
63 |
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.