Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
42 | 20 | public function __invoke( $user_id ) { |
|
43 | 20 | $result = $this->stmt->execute([ |
|
44 | 16 | 'user_id' => $user_id |
|
45 | 4 | ]); |
|
46 | |||
47 | 20 | if ($result) { |
|
48 | 10 | return $this->stmt->fetchAll(\PDO::FETCH_COLUMN); |
|
49 | } |
||
50 | |||
51 | 10 | throw new \RuntimeException( "PDOStatement execution on table " . $this->table . " returned FALSE"); |
|
52 | } |
||
53 | |||
56 |
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..