Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Wrapping #659

Merged
merged 1 commit into from
Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions src/FieldDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ public static function optionalReference(string $className): FieldDefinition\Opt
* @psalm-return FieldDefinition\References<T>
* @psalm-template T
*/
public static function references(string $className, Count $count): FieldDefinition\References
{
public static function references(
string $className,
Count $count
): FieldDefinition\References {
return new FieldDefinition\References(
$className,
$count,
Expand All @@ -69,16 +71,20 @@ public static function references(string $className, Count $count): FieldDefinit
/**
* @throws Exception\InvalidSequence
*/
public static function sequence(string $value, int $initialNumber = 1): FieldDefinition\Sequence
{
public static function sequence(
string $value,
int $initialNumber = 1
): FieldDefinition\Sequence {
return new FieldDefinition\Sequence(
$value,
$initialNumber,
);
}

public static function optionalSequence(string $value, int $initialNumber = 1): FieldDefinition\Resolvable
{
public static function optionalSequence(
string $value,
int $initialNumber = 1
): FieldDefinition\Resolvable {
return new FieldDefinition\Optional(new FieldDefinition\Sequence(
$value,
$initialNumber,
Expand Down