Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | public function findByPath($category, $path) |
||
28 | { |
||
29 | $query = " |
||
30 | SELECT `id`, `title`, `path`, `date`, `body`, `category` |
||
31 | FROM `jpemeric_blog`.`post` |
||
32 | WHERE `path` = :path AND `category` = :category AND `display` = :is_active |
||
33 | LIMIT 1"; |
||
34 | $bindings = array( |
||
35 | 'path' => $path, |
||
36 | 'category' => $category, |
||
37 | 'is_active' => 1, |
||
38 | ); |
||
39 | |||
40 | return $this |
||
41 | ->connections |
||
42 | ->getRead() |
||
43 | ->fetchOne($query, $bindings); |
||
44 | } |
||
45 | } |
||
46 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..