1 | <?php |
||
4 | class PdoAddressInserter |
||
5 | { |
||
6 | /** |
||
7 | * @var PDOStmt |
||
8 | */ |
||
9 | public $stmt; |
||
10 | |||
11 | /** |
||
12 | * @var PDO |
||
13 | */ |
||
14 | public $pdo; |
||
15 | |||
16 | |||
17 | /** |
||
18 | * @param \PDO $pdo |
||
19 | * @param string $table_name |
||
20 | */ |
||
21 | 6 | public function __construct( \PDO $pdo, string $table_name ) |
|
31 | |||
32 | |||
33 | |||
34 | 6 | public function __invoke( AddressInterface $address ) : int |
|
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..