| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 6 | public function __construct( \PDO $pdo, string $table_name ) |
|
| 17 | { |
||
| 18 | |||
| 19 | 6 | $sql = "UPDATE {$table_name} |
|
| 20 | SET |
||
| 21 | type = :type, |
||
| 22 | street1 = :street1, |
||
| 23 | street2 = :street2, |
||
| 24 | zip = :zip, |
||
| 25 | location = :location, |
||
| 26 | country = :country |
||
| 27 | WHERE id = :id |
||
| 28 | LIMIT 1"; |
||
| 29 | |||
| 30 | 6 | $this->stmt = $pdo->prepare( $sql ); |
|
|
|
|||
| 31 | 6 | } |
|
| 32 | |||
| 57 | } |
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..