Skip to content

Commit 5aa0423

Browse files
committed
Cast createSearchIndex model arg before array_diff
1 parent 728bd60 commit 5aa0423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/UnifiedSpecTests/Operation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ private function executeForCollection(Collection $collection)
545545
/* Note: tests specify options within "model". A top-level
546546
* "options" key (CreateSearchIndexOptions) is not used. */
547547
$definition = $args['model']->definition;
548-
$options = array_diff_key($args['model'], ['definition' => 1]);
548+
$options = array_diff_key((array) $args['model'], ['definition' => 1]);
549549

550550
return $collection->createSearchIndex($definition, $options);
551551

0 commit comments

Comments
 (0)