@@ -152,7 +152,7 @@ public function getSql(): string
152152 * @internal
153153 * @return list<string>
154154 */
155- public function getPreviousAccessedColumns (): array | bool
155+ public function getPreviousAccessedColumns (): array
156156 {
157157 if ($ this ->cache && $ this ->previousAccessedColumns === null ) {
158158 $ this ->accessedColumns = $ this ->previousAccessedColumns = $ this ->cache ->load ($ this ->getGeneralCacheKey ());
@@ -260,7 +260,7 @@ public function fetchAssoc(string $path): array
260260 * Adds select clause, more calls append to the end.
261261 * @param string $columns for example "column, MD5(column) AS column_md5"
262262 */
263- public function select (string $ columns , ...$ params ): static
263+ public function select (string $ columns , mixed ...$ params ): static
264264 {
265265 $ this ->emptyResultSet ();
266266 $ this ->sqlBuilder ->addSelect ($ columns , ...$ params );
@@ -295,7 +295,7 @@ public function wherePrimary(mixed $key): static
295295 * Adds where condition, more calls append with AND.
296296 * @param string|array<int|string, mixed> $condition possibly containing ?
297297 */
298- public function where (string |array $ condition , ...$ params ): static
298+ public function where (string |array $ condition , mixed ...$ params ): static
299299 {
300300 $ this ->condition ($ condition , $ params );
301301 return $ this ;
@@ -307,7 +307,7 @@ public function where(string|array $condition, ...$params): static
307307 * @param string $tableChain table chain or table alias for which you need additional left join condition
308308 * @param string $condition possibly containing ?
309309 */
310- public function joinWhere (string $ tableChain , string $ condition , ...$ params ): static
310+ public function joinWhere (string $ tableChain , string $ condition , mixed ...$ params ): static
311311 {
312312 $ this ->condition ($ condition , $ params , $ tableChain );
313313 return $ this ;
@@ -378,7 +378,7 @@ public function whereOr(array $parameters): static
378378 * Adds ORDER BY clause, more calls appends to the end.
379379 * @param string $columns for example 'column1, column2 DESC'
380380 */
381- public function order (string $ columns , ...$ params ): static
381+ public function order (string $ columns , mixed ...$ params ): static
382382 {
383383 $ this ->emptyResultSet ();
384384 $ this ->sqlBuilder ->addOrder ($ columns , ...$ params );
@@ -400,7 +400,7 @@ public function limit(?int $limit, ?int $offset = null): static
400400 /**
401401 * Sets OFFSET using page number, more calls rewrite old values.
402402 */
403- public function page (int $ page , int $ itemsPerPage , &$ numOfPages = null ): static
403+ public function page (int $ page , int $ itemsPerPage , ? int &$ numOfPages = null ): static
404404 {
405405 if (func_num_args () > 2 ) {
406406 $ numOfPages = (int ) ceil ($ this ->count ('* ' ) / $ itemsPerPage );
@@ -417,7 +417,7 @@ public function page(int $page, int $itemsPerPage, &$numOfPages = null): static
417417 /**
418418 * Sets GROUP BY clause, more calls rewrite old value.
419419 */
420- public function group (string $ columns , ...$ params ): static
420+ public function group (string $ columns , mixed ...$ params ): static
421421 {
422422 $ this ->emptyResultSet ();
423423 $ this ->sqlBuilder ->setGroup ($ columns , ...$ params );
@@ -428,7 +428,7 @@ public function group(string $columns, ...$params): static
428428 /**
429429 * Sets HAVING clause, more calls rewrite old value.
430430 */
431- public function having (string $ having , ...$ params ): static
431+ public function having (string $ having , mixed ...$ params ): static
432432 {
433433 $ this ->emptyResultSet ();
434434 $ this ->sqlBuilder ->setHaving ($ having , ...$ params );
@@ -647,7 +647,7 @@ protected function saveCacheState(): void
647647 * @param-out string $refPath
648648 * @return static
649649 */
650- protected function getRefTable (&$ refPath ): self
650+ protected function getRefTable (mixed &$ refPath ): self
651651 {
652652 $ refPath = '' ;
653653 return $ this ;
@@ -795,7 +795,7 @@ public function getDataRefreshed(): bool
795795 * @param iterable<string, mixed>|self $data
796796 * @return ($data is array<string, mixed> ? T|array<string, mixed> : int)
797797 */
798- public function insert (iterable $ data ): ActiveRow |array |int | bool
798+ public function insert (iterable $ data ): ActiveRow |array |int
799799 {
800800 //should be called before query for not to spoil PDO::lastInsertId
801801 $ primarySequenceName = $ this ->getPrimarySequence ();
0 commit comments