| 1 | <?php |
||
| 9 | final class Delete implements QueryInterface |
||
| 10 | { |
||
| 11 | use Traits\Common; |
||
| 12 | use Traits\HasRelatedWith; |
||
| 13 | |||
| 14 | private $allowedMethods = [ |
||
| 15 | 'setFlag', |
||
| 16 | 'where', |
||
| 17 | 'orWhere', |
||
| 18 | 'catWhere', |
||
| 19 | 'orderBy', |
||
| 20 | 'limit', |
||
| 21 | 'offset', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | public function __construct(Table $table) |
||
| 38 | } |
||
| 39 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: