Skip to content

Commit a94f5c6

Browse files
committed
applying default values, refactoring schema process, optimizing few places
1 parent 1e029ba commit a94f5c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/Helper/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static function setUpProperties($properties, Schema $ownerSchema)
5050
$defaultOptions = new UserOptions();
5151
$defaultOptions->autoLogin = true;
5252
$defaultOptions->groupName = 'guest';
53-
$properties->options = (clone UserOptions::schema())->setDefault(UserOptions::export($defaultOptions));
53+
$properties->options = clone UserOptions::schema();
54+
$properties->options->setDefault(UserOptions::export($defaultOptions));
5455

5556
// Dynamic (phpdoc-defined) properties can be used as well
5657
$properties->quantity = Schema::integer();

0 commit comments

Comments
 (0)