Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | public function getSeriesForPost($post) |
||
27 | { |
||
28 | $query = " |
||
29 | SELECT `series`.`title` AS `series_title`, `series`.`description` AS `series_descriptions`, |
||
30 | `post.id` AS `post`, `post`.`title`, `post`.`category`, `post`.`path` |
||
31 | FROM `jpemeric_blog`.`series` |
||
32 | INNER JOIN `jpemeric_blog`.`series_post` ON `series_post`.`series` = `series.`id` |
||
33 | INNER JOIN `jpemeric_blog`.`post` ON `post`.`id` = `series_post`.`post` AND |
||
34 | `post`.`display` = :is_active |
||
35 | WHERE `series`.`id` = ( |
||
36 | SELECT `series` |
||
37 | FROM `jpemeric_blog`.`series_post` |
||
38 | WHERE `post` = :lookup_post |
||
39 | LIMIT 1) |
||
40 | ORDER BY `series_post`.`order`"; |
||
41 | $bindings = [ |
||
42 | 'is_active' => 1, |
||
43 | 'lookup_post' => $post, |
||
44 | ]; |
||
45 | |||
46 | return $this |
||
47 | ->connections |
||
48 | ->getRead() |
||
49 | ->fetchAll($query, $bindings); |
||
50 | } |
||
51 | } |
||
52 |
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..