1 | <?php |
||
17 | abstract class StatementAbstract implements StatementInterface{ |
||
18 | |||
19 | protected $DBDriver; |
||
20 | protected $dialect; |
||
21 | protected $quotes; |
||
22 | protected $limit; |
||
23 | protected $offset; |
||
24 | protected $bindValues = []; |
||
25 | |||
26 | public function __construct(DBDriverInterface $DBDriver, string $dialect){ |
||
31 | |||
32 | public function sql():string { |
||
35 | |||
36 | public function bindValues():array{ |
||
48 | |||
49 | public function execute(){ |
||
52 | |||
53 | public function quote(string $str):string{ |
||
58 | |||
59 | protected function getStatementClass(string $name){ |
||
64 | |||
65 | } |
||
66 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: