Conditions | 5 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function dbTypecast(mixed $value): mixed |
||
17 | { |
||
18 | if ($this->getDbType() === 'varbinary') { |
||
19 | if ($value instanceof ParamInterface && is_string($value->getValue())) { |
||
20 | /** @psalm-var string */ |
||
21 | $value = $value->getValue(); |
||
22 | } |
||
23 | |||
24 | if (is_string($value)) { |
||
25 | return new Expression('CONVERT(VARBINARY(MAX), ' . ('0x' . bin2hex($value)) . ')'); |
||
26 | } |
||
27 | } |
||
28 | |||
29 | return parent::dbTypecast($value); |
||
30 | } |
||
32 |
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