@@ -532,9 +532,8 @@ abstract protected function doOnlyDeleted();
532532 * Compiles a replace and runs the query.
533533 * This method works only with dbCalls.
534534 *
535- * @param array|null $row Row data
536- * @phpstan-param row_array|null $row
537- * @param bool $returnSQL Set to true to return Query String
535+ * @param row_array|null $row Row data
536+ * @param bool $returnSQL Set to true to return Query String
538537 *
539538 * @return BaseResult|false|Query|string
540539 */
@@ -552,8 +551,7 @@ abstract protected function doErrors();
552551 * Public getter to return the id value using the idValue() method.
553552 * For example with SQL this will return $data->$this->primaryKey.
554553 *
555- * @param array|object $row Row data
556- * @phpstan-param row_array|object $row
554+ * @param object|row_array $row Row data
557555 *
558556 * @return array|int|string|null
559557 */
@@ -737,8 +735,7 @@ public function first()
737735 * you must ensure that the class will provide access to the class
738736 * variables, even if through a magic method.
739737 *
740- * @param array|object $row Row data
741- * @phpstan-param row_array|object $row
738+ * @param object|row_array $row Row data
742739 *
743740 * @throws ReflectionException
744741 */
@@ -789,9 +786,8 @@ public function getInsertID()
789786 * Inserts data into the database. If an object is provided,
790787 * it will attempt to convert it to an array.
791788 *
792- * @param array|object|null $row Row data
793- * @phpstan-param row_array|object|null $row
794- * @param bool $returnID Whether insert ID should be returned or not.
789+ * @param object|row_array|null $row Row data
790+ * @param bool $returnID Whether insert ID should be returned or not.
795791 *
796792 * @return ($returnID is true ? false|int|string : bool)
797793 *
@@ -866,8 +862,8 @@ public function insert($row = null, bool $returnID = true)
866862 /**
867863 * Set datetime to created field.
868864 *
869- * @phpstan- param row_array $row
870- * @param int|string $date timestamp or datetime string
865+ * @param row_array $row
866+ * @param int|string $date timestamp or datetime string
871867 */
872868 protected function setCreatedField (array $ row , $ date ): array
873869 {
@@ -881,8 +877,8 @@ protected function setCreatedField(array $row, $date): array
881877 /**
882878 * Set datetime to updated field.
883879 *
884- * @phpstan- param row_array $row
885- * @param int|string $date timestamp or datetime string
880+ * @param row_array $row
881+ * @param int|string $date timestamp or datetime string
886882 */
887883 protected function setUpdatedField (array $ row , $ date ): array
888884 {
@@ -896,11 +892,10 @@ protected function setUpdatedField(array $row, $date): array
896892 /**
897893 * Compiles batch insert runs the queries, validating each row prior.
898894 *
899- * @param list<array|object>|null $set an associative array of insert values
900- * @phpstan-param list<row_array|object>|null $set
901- * @param bool|null $escape Whether to escape values
902- * @param int $batchSize The size of the batch to run
903- * @param bool $testing True means only number of records is returned, false will execute the query
895+ * @param list<object|row_array>|null $set an associative array of insert values
896+ * @param bool|null $escape Whether to escape values
897+ * @param int $batchSize The size of the batch to run
898+ * @param bool $testing True means only number of records is returned, false will execute the query
904899 *
905900 * @return bool|int Number of rows inserted or FALSE on failure
906901 *
@@ -1042,11 +1037,10 @@ public function update($id = null, $row = null): bool
10421037 /**
10431038 * Compiles an update and runs the query.
10441039 *
1045- * @param list<array|object>|null $set an associative array of insert values
1046- * @phpstan-param list<row_array|object>|null $set
1047- * @param string|null $index The where key
1048- * @param int $batchSize The size of the batch to run
1049- * @param bool $returnSQL True means SQL is returned, false will execute the query
1040+ * @param list<object|row_array>|null $set an associative array of insert values
1041+ * @param string|null $index The where key
1042+ * @param int $batchSize The size of the batch to run
1043+ * @param bool $returnSQL True means SQL is returned, false will execute the query
10501044 *
10511045 * @return false|int|list<string> Number of rows affected or FALSE on failure, SQL array when testMode
10521046 *
@@ -1125,8 +1119,8 @@ public function updateBatch(?array $set = null, ?string $index = null, int $batc
11251119 /**
11261120 * Deletes a single record from the database where $id matches.
11271121 *
1128- * @param array| int|string|null $id The rows primary key(s)
1129- * @param bool $purge Allows overriding the soft deletes setting.
1122+ * @param int|list< int|string> |string|null $id The rows primary key(s)
1123+ * @param bool $purge Allows overriding the soft deletes setting.
11301124 *
11311125 * @return BaseResult|bool
11321126 *
@@ -1214,9 +1208,8 @@ public function onlyDeleted()
12141208 /**
12151209 * Compiles a replace and runs the query.
12161210 *
1217- * @param array|null $row Row data
1218- * @phpstan-param row_array|null $row
1219- * @param bool $returnSQL Set to true to return Query String
1211+ * @param row_array|null $row Row data
1212+ * @param bool $returnSQL Set to true to return Query String
12201213 *
12211214 * @return BaseResult|false|Query|string
12221215 */
@@ -1810,9 +1803,8 @@ protected function objectToRawArray($object, bool $onlyChanged = true, bool $rec
18101803 /**
18111804 * Transform data to array.
18121805 *
1813- * @param array|object|null $row Row data
1814- * @phpstan-param row_array|object|null $row
1815- * @param string $type Type of data (insert|update)
1806+ * @param object|row_array|null $row Row data
1807+ * @param string $type Type of data (insert|update)
18161808 *
18171809 * @throws DataException
18181810 * @throws InvalidArgumentException
0 commit comments