@@ -53,7 +53,7 @@ public function __construct(DatabaseManager $db)
5353 * @createdBy Mohammad Ghanbari <mavin.developer@gmail.com>
5454 * @updatedBy Ibrahim Sakr <ebrahimes@gmail.com>
5555 */
56- public function update (Model $ table , array $ values , string $ index = null , bool $ raw = false )
56+ public function update (Model $ table , array $ values , string | null $ index = null , bool $ raw = false )
5757 {
5858 $ final = [];
5959 $ ids = [];
@@ -170,7 +170,7 @@ public function update(Model $table, array $values, string $index = null, bool $
170170 * $index2 = 'user_id';
171171 *
172172 */
173- public function updateWithTwoIndex (Model $ table , array $ values , string $ index = null , string $ index2 = null , bool $ raw = false )
173+ public function updateWithTwoIndex (Model $ table , array $ values , string | null $ index = null , string | null $ index2 = null , bool $ raw = false )
174174 {
175175 $ final = [];
176176 $ ids = [];
@@ -261,7 +261,7 @@ public function updateWithTwoIndex(Model $table, array $values, string $index =
261261 * ];
262262 * $keyName = 'id';
263263 */
264- public function updateMultipleCondition (Model $ table , array $ arrays , string $ keyName = null , bool $ raw = false )
264+ public function updateMultipleCondition (Model $ table , array $ arrays , string | null $ keyName = null , bool $ raw = false )
265265 {
266266 $ driver = $ table ->getConnection ()->getDriverName ();
267267 $ connectionName = $ this ->getConnectionName ($ table );
0 commit comments