1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Yiisoft\Db\Mssql; |
||
6 | |||
7 | use Yiisoft\Db\Syntax\AbstractSqlParser; |
||
0 ignored issues
–
show
|
|||
8 | |||
9 | final class SqlParser extends AbstractSqlParser |
||
10 | { |
||
11 | 34 | public function getNextPlaceholder(int|null &$position = null): string|null |
|
12 | { |
||
13 | 34 | $result = null; |
|
14 | 34 | $length = $this->length - 1; |
|
15 | |||
16 | 34 | while ($this->position < $length) { |
|
17 | 34 | $pos = $this->position++; |
|
18 | |||
19 | 34 | match ($this->sql[$pos]) { |
|
20 | 34 | ':' => ($word = $this->parseWord()) === '' |
|
21 | 1 | ? $this->skipChars(':') |
|
22 | 33 | : $result = ':' . $word, |
|
23 | 34 | '"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]), |
|
24 | 34 | '[' => $this->sql[$this->position] === '[' |
|
25 | 11 | ? $this->skipToAfterString(']]') |
|
26 | 12 | : $this->skipQuotedWithoutEscape(']'), |
|
27 | 34 | '-' => $this->sql[$this->position] === '-' |
|
28 | 1 | ? ++$this->position && $this->skipToAfterChar("\n") |
|
29 | 1 | : null, |
|
30 | 34 | '/' => $this->sql[$this->position] === '*' |
|
31 | 1 | ? ++$this->position && $this->skipToAfterString('*/') |
|
32 | 1 | : null, |
|
33 | 34 | default => null, |
|
34 | 34 | }; |
|
35 | |||
36 | 34 | if ($result !== null) { |
|
37 | 32 | $position = $pos; |
|
38 | |||
39 | 32 | return $result; |
|
40 | } |
||
41 | } |
||
42 | |||
43 | 8 | return null; |
|
44 | } |
||
45 | } |
||
46 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths