@@ -68,8 +68,8 @@ public function addForeignKey(
6868 array |string $ columns ,
6969 string $ referenceTable ,
7070 array |string $ referenceColumns ,
71- string $ delete = null ,
72- string $ update = null
71+ ? string $ delete = null ,
72+ ? string $ update = null
7373 ): static {
7474 return new self ($ this ->decorated ->{__FUNCTION__ }(...func_get_args ()), $ this ->collector );
7575 }
@@ -112,8 +112,8 @@ public function insertBatch(string $table, iterable $rows, array $columns = []):
112112 public function bindParam (
113113 int |string $ name ,
114114 mixed &$ value ,
115- int $ dataType = null ,
116- int $ length = null ,
115+ ? int $ dataType = null ,
116+ ? int $ length = null ,
117117 mixed $ driverOptions = null
118118 ): static {
119119 return new self ($ this ->decorated ->{__FUNCTION__ }(...func_get_args ()), $ this ->collector );
@@ -122,7 +122,7 @@ public function bindParam(
122122 /**
123123 * @psalm-suppress MixedArgument
124124 */
125- public function bindValue (int |string $ name , mixed $ value , int $ dataType = null ): static
125+ public function bindValue (int |string $ name , mixed $ value , ? int $ dataType = null ): static
126126 {
127127 return new self ($ this ->decorated ->{__FUNCTION__ }(...func_get_args ()), $ this ->collector );
128128 }
@@ -155,16 +155,16 @@ public function createIndex(
155155 string $ table ,
156156 string $ name ,
157157 array |string $ columns ,
158- string $ indexType = null ,
159- string $ indexMethod = null
158+ ? string $ indexType = null ,
159+ ? string $ indexMethod = null
160160 ): static {
161161 return new self ($ this ->decorated ->{__FUNCTION__ }(...func_get_args ()), $ this ->collector );
162162 }
163163
164164 /**
165165 * @psalm-suppress MixedArgument
166166 */
167- public function createTable (string $ table , array $ columns , string $ options = null ): static
167+ public function createTable (string $ table , array $ columns , ? string $ options = null ): static
168168 {
169169 return new self ($ this ->decorated ->{__FUNCTION__ }(...func_get_args ()), $ this ->collector );
170170 }
@@ -323,7 +323,7 @@ public function insertWithReturningPks(string $table, array $columns): bool|arra
323323 return $ this ->decorated ->{__FUNCTION__ }(...func_get_args ());
324324 }
325325
326- public function prepare (bool $ forRead = null ): void
326+ public function prepare (? bool $ forRead = null ): void
327327 {
328328 $ this ->decorated ->{__FUNCTION__ }(...func_get_args ());
329329 }
@@ -443,7 +443,7 @@ public function renameTable(string $table, string $newName): static
443443 /**
444444 * @psalm-suppress MixedArgument
445445 */
446- public function resetSequence (string $ table , int |string $ value = null ): static
446+ public function resetSequence (string $ table , int |string | null $ value = null ): static
447447 {
448448 return new self ($ this ->decorated ->{__FUNCTION__ }(...func_get_args ()), $ this ->collector );
449449 }
0 commit comments