1 | <?php |
||
32 | abstract class AbstractInjector implements InjectorInterface |
||
33 | { |
||
34 | |||
35 | /** |
||
36 | * The PDO database connection object |
||
37 | * |
||
38 | * @var \PDO $dbResource |
||
39 | */ |
||
40 | protected $pdoString; |
||
41 | |||
42 | /** |
||
43 | * The PDO database connection object |
||
44 | * |
||
45 | * @var \PDO $dbResource |
||
46 | */ |
||
47 | protected $user; |
||
48 | |||
49 | /** |
||
50 | * The PDO database connection object |
||
51 | * |
||
52 | * @var \PDO $dbResource |
||
53 | */ |
||
54 | protected $password; |
||
55 | |||
56 | /** |
||
57 | * Default constructor |
||
58 | * |
||
59 | * @param string $pdoString The PDO connection string |
||
60 | * @param string $user The user used to connect to the DB |
||
61 | * @param string $password The needed password |
||
62 | */ |
||
63 | public function __construct($pdoString, $user = '', $password = '') |
||
69 | |||
70 | /** |
||
71 | * Getter for the database resource |
||
72 | * |
||
73 | * @return \PDO |
||
74 | */ |
||
75 | public function getDbResource() |
||
79 | } |
||
80 |
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..