| 1 | <?php |
||
| 11 | final class Select implements QueryInterface |
||
| 12 | { |
||
| 13 | use Traits\Common; |
||
| 14 | use Traits\HasRelatedWith; |
||
| 15 | use Traits\HasPagination; |
||
| 16 | use Traits\HasJoinRelation; |
||
| 17 | |||
| 18 | private $one; |
||
| 19 | private $allowedMethods = [ |
||
| 20 | 'from', |
||
| 21 | 'join', |
||
| 22 | 'catJoin', |
||
| 23 | 'groupBy', |
||
| 24 | 'having', |
||
| 25 | 'orHaving', |
||
| 26 | 'orderBy', |
||
| 27 | 'catHaving', |
||
| 28 | 'where', |
||
| 29 | 'orWhere', |
||
| 30 | 'catWhere', |
||
| 31 | 'limit', |
||
| 32 | 'offset', |
||
| 33 | 'distinct', |
||
| 34 | 'forUpdate', |
||
| 35 | 'setFlag', |
||
| 36 | ]; |
||
| 37 | |||
| 38 | public function __construct(Table $table) |
||
| 60 | |||
| 61 | public function one(): self |
||
| 68 | |||
| 69 | public function run() |
||
| 84 | |||
| 85 | private function formatRow(array $data): array |
||
| 93 | } |
||
| 94 |
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: