| 1 | <?php |
||
| 20 | class ExtendedPDO extends PDO |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Executes an SQL statement with parameters, |
||
| 24 | * returning a result set as a PDOStatement object |
||
| 25 | * |
||
| 26 | * @param string $query SQL statement |
||
| 27 | * @param array $param Parameter as array as |
||
| 28 | * |
||
| 29 | * @return PDOStatement |
||
| 30 | */ |
||
| 31 | public function queryWithParam(string $query, array $param) : \PDOStatement |
||
| 53 | } |
||
| 54 | |||
| 55 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.