File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -785,12 +785,11 @@ public function getInsertID()
785785 * Validates that the primary key values are valid for update/delete/insert operations.
786786 * Throws exception if invalid.
787787 *
788- * @param int|list<int|string>|RawSql|string $id
789788 * @param bool $allowArray Whether to allow array of IDs (true for update/delete, false for insert)
790- *
789+ * @phpstan-assert non-zero-int|non-empty-list<int|string>|RawSql|non-falsy-string $id
791790 * @throws InvalidArgumentException
792791 */
793- protected function validateID ($ id , bool $ allowArray = true ): void
792+ protected function validateID (mixed $ id , bool $ allowArray = true ): void
794793 {
795794 if (is_array ($ id )) {
796795 // Check if arrays are allowed
You can’t perform that action at this time.
0 commit comments