Skip to content

Commit cc0998e

Browse files
committed
add self return type;
1 parent ff287a4 commit cc0998e

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

src/DocBlock/Tags/Covers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function create(
4747
?DescriptionFactory $descriptionFactory = null,
4848
?FqsenResolver $resolver = null,
4949
?TypeContext $context = null
50-
) {
50+
): self {
5151
Assert::notEmpty($body);
5252

5353
$parts = preg_split('/\s+/Su', $body, 2);

src/DocBlock/Tags/Deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function create(
5959
?string $body,
6060
?DescriptionFactory $descriptionFactory = null,
6161
?TypeContext $context = null
62-
) {
62+
): self {
6363
if (empty($body)) {
6464
return new static();
6565
}

src/DocBlock/Tags/Generic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
string $name = '',
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::stringNotEmpty($name);
5454
Assert::notNull($descriptionFactory);
5555

src/DocBlock/Tags/Param.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function create(
5353
?TypeResolver $typeResolver = null,
5454
?DescriptionFactory $descriptionFactory = null,
5555
?TypeContext $context = null
56-
) {
56+
): self {
5757
Assert::stringNotEmpty($body);
5858
Assert::allNotNull([$typeResolver, $descriptionFactory]);
5959

src/DocBlock/Tags/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
?TypeResolver $typeResolver = null,
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::stringNotEmpty($body);
5454
Assert::allNotNull([$typeResolver, $descriptionFactory]);
5555

src/DocBlock/Tags/PropertyRead.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
?TypeResolver $typeResolver = null,
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::stringNotEmpty($body);
5454
Assert::allNotNull([$typeResolver, $descriptionFactory]);
5555

src/DocBlock/Tags/PropertyWrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
?TypeResolver $typeResolver = null,
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::stringNotEmpty($body);
5454
Assert::allNotNull([$typeResolver, $descriptionFactory]);
5555

src/DocBlock/Tags/Return_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function create(
4444
?TypeResolver $typeResolver = null,
4545
?DescriptionFactory $descriptionFactory = null,
4646
?TypeContext $context = null
47-
) {
47+
): self {
4848
Assert::allNotNull([$typeResolver, $descriptionFactory]);
4949

5050
$parts = preg_split('/\s+/Su', $body, 2);

src/DocBlock/Tags/See.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
?FqsenResolver $resolver = null,
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::allNotNull([$resolver, $descriptionFactory]);
5454

5555
$parts = preg_split('/\s+/Su', $body, 2);

src/DocBlock/Tags/Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
string $body,
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::stringNotEmpty($body);
5454
Assert::notNull($descriptionFactory);
5555

src/DocBlock/Tags/Throws.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function create(
4444
?TypeResolver $typeResolver = null,
4545
?DescriptionFactory $descriptionFactory = null,
4646
?TypeContext $context = null
47-
) {
47+
): self {
4848
Assert::allNotNull([$typeResolver, $descriptionFactory]);
4949

5050
$parts = preg_split('/\s+/Su', $body, 2);

src/DocBlock/Tags/Uses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function create(
4747
?FqsenResolver $resolver = null,
4848
?DescriptionFactory $descriptionFactory = null,
4949
?TypeContext $context = null
50-
) {
50+
): self {
5151
Assert::allNotNull([$resolver, $descriptionFactory]);
5252

5353
$parts = preg_split('/\s+/Su', $body, 2);

src/DocBlock/Tags/Var_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function create(
4949
?TypeResolver $typeResolver = null,
5050
?DescriptionFactory $descriptionFactory = null,
5151
?TypeContext $context = null
52-
) {
52+
): self {
5353
Assert::stringNotEmpty($body);
5454
Assert::allNotNull([$typeResolver, $descriptionFactory]);
5555

0 commit comments

Comments
 (0)