File tree Expand file tree Collapse file tree 13 files changed +13
-13
lines changed Expand file tree Collapse file tree 13 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static function create(
47
47
?DescriptionFactory $ descriptionFactory = null ,
48
48
?FqsenResolver $ resolver = null ,
49
49
?TypeContext $ context = null
50
- ) {
50
+ ): self {
51
51
Assert::notEmpty ($ body );
52
52
53
53
$ parts = preg_split ('/\s+/Su ' , $ body , 2 );
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public static function create(
59
59
?string $ body ,
60
60
?DescriptionFactory $ descriptionFactory = null ,
61
61
?TypeContext $ context = null
62
- ) {
62
+ ): self {
63
63
if (empty ($ body )) {
64
64
return new static ();
65
65
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
string $ name = '' ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::stringNotEmpty ($ name );
54
54
Assert::notNull ($ descriptionFactory );
55
55
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static function create(
53
53
?TypeResolver $ typeResolver = null ,
54
54
?DescriptionFactory $ descriptionFactory = null ,
55
55
?TypeContext $ context = null
56
- ) {
56
+ ): self {
57
57
Assert::stringNotEmpty ($ body );
58
58
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
59
59
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
?TypeResolver $ typeResolver = null ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::stringNotEmpty ($ body );
54
54
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
55
55
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
?TypeResolver $ typeResolver = null ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::stringNotEmpty ($ body );
54
54
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
55
55
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
?TypeResolver $ typeResolver = null ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::stringNotEmpty ($ body );
54
54
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
55
55
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public static function create(
44
44
?TypeResolver $ typeResolver = null ,
45
45
?DescriptionFactory $ descriptionFactory = null ,
46
46
?TypeContext $ context = null
47
- ) {
47
+ ): self {
48
48
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
49
49
50
50
$ parts = preg_split ('/\s+/Su ' , $ body , 2 );
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
?FqsenResolver $ resolver = null ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::allNotNull ([$ resolver , $ descriptionFactory ]);
54
54
55
55
$ parts = preg_split ('/\s+/Su ' , $ body , 2 );
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
string $ body ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::stringNotEmpty ($ body );
54
54
Assert::notNull ($ descriptionFactory );
55
55
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public static function create(
44
44
?TypeResolver $ typeResolver = null ,
45
45
?DescriptionFactory $ descriptionFactory = null ,
46
46
?TypeContext $ context = null
47
- ) {
47
+ ): self {
48
48
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
49
49
50
50
$ parts = preg_split ('/\s+/Su ' , $ body , 2 );
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static function create(
47
47
?FqsenResolver $ resolver = null ,
48
48
?DescriptionFactory $ descriptionFactory = null ,
49
49
?TypeContext $ context = null
50
- ) {
50
+ ): self {
51
51
Assert::allNotNull ([$ resolver , $ descriptionFactory ]);
52
52
53
53
$ parts = preg_split ('/\s+/Su ' , $ body , 2 );
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function create(
49
49
?TypeResolver $ typeResolver = null ,
50
50
?DescriptionFactory $ descriptionFactory = null ,
51
51
?TypeContext $ context = null
52
- ) {
52
+ ): self {
53
53
Assert::stringNotEmpty ($ body );
54
54
Assert::allNotNull ([$ typeResolver , $ descriptionFactory ]);
55
55
You can’t perform that action at this time.
0 commit comments