Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
21 | 6 | public function __construct( \PDO $pdo, string $table_name ) |
|
22 | { |
||
23 | 6 | $this->pdo = $pdo; |
|
|
|||
24 | |||
25 | 6 | $sql = "INSERT INTO {$table_name} |
|
26 | ( type, street1, street2, zip, location, country ) |
||
27 | VALUES( :type, :street1, :street2, :zip, :location, :country)"; |
||
28 | |||
29 | 6 | $this->stmt = $pdo->prepare( $sql ); |
|
30 | 6 | } |
|
31 | |||
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..