Skip to content

Commit 77c70fe

Browse files
committed
Apply phpcs
1 parent fa698e4 commit 77c70fe

24 files changed

+39
-40
lines changed

src/Exception/Mapping/ClassException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99

1010
/**
1111
* @template TObject of object = object
12-
*
1312
* @template-extends ValueOfTypeException<class-string<TObject>>
1413
*/
1514
abstract class ClassException extends ValueOfTypeException implements
1615
FinalExceptionInterface
1716
{
1817
/**
19-
* @param class-string<TObject> $class Unlike {@see ValueException::$value},
20-
* this property must contain only {@see class-string}.
18+
* @param class-string<TObject> $class unlike {@see ValueException::$value},
19+
* this property must contain only {@see class-string}
2120
*/
2221
public function __construct(
2322
TypeStatement $expected,

src/Exception/Mapping/InvalidIterableKeyException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
/**
1111
* @template TValue of iterable = iterable<mixed, mixed>
12-
*
1312
* @template-extends IterableKeyException<TValue>
1413
*/
1514
class InvalidIterableKeyException extends IterableKeyException
@@ -19,6 +18,7 @@ class InvalidIterableKeyException extends IterableKeyException
1918
*
2019
* @param int<0, max> $index
2120
* @param TArgValue $value
21+
*
2222
* @return self<TArgValue>
2323
*/
2424
public static function createFromPath(
@@ -46,6 +46,7 @@ public static function createFromPath(
4646
*
4747
* @param int<0, max> $index
4848
* @param TArgValue $value
49+
*
4950
* @return self<TArgValue>
5051
*/
5152
public static function createFromContext(

src/Exception/Mapping/InvalidIterableValueException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
/**
1111
* @template TValue of iterable = iterable<mixed, mixed>
12-
*
1312
* @template-extends IterableValueException<TValue>
1413
*/
1514
class InvalidIterableValueException extends IterableValueException
@@ -19,6 +18,7 @@ class InvalidIterableValueException extends IterableValueException
1918
*
2019
* @param int<0, max> $index
2120
* @param TArgValue $value
21+
*
2222
* @return self<TArgValue>
2323
*/
2424
public static function createFromPath(
@@ -54,6 +54,7 @@ public static function createFromPath(
5454
*
5555
* @param int<0, max> $index
5656
* @param TArgValue $value
57+
*
5758
* @return self<TArgValue>
5859
*/
5960
public static function createFromContext(

src/Exception/Mapping/InvalidObjectValueException.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010

1111
/**
1212
* @template TValue of array<array-key, mixed>|object = array<array-key, mixed>|object
13-
*
1413
* @template-extends ObjectValueException<TValue>
1514
*/
1615
class InvalidObjectValueException extends ObjectValueException
1716
{
1817
/**
1918
* @template TArgValue of array|object
19+
*
2020
* @param non-empty-string $field
2121
* @param TArgValue $value
22+
*
2223
* @return self<TArgValue>
2324
*/
2425
public static function createFromPath(
@@ -45,8 +46,10 @@ public static function createFromPath(
4546

4647
/**
4748
* @template TArgValue of array|object
49+
*
4850
* @param non-empty-string $field
4951
* @param TArgValue $value
52+
*
5053
* @return self<TArgValue>
5154
*/
5255
public static function createFromContext(

src/Exception/Mapping/InvalidValueException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
/**
1111
* @template TValue of mixed = mixed
12-
*
1312
* @template-extends ValueException<TValue>
1413
*/
1514
class InvalidValueException extends ValueException
@@ -18,6 +17,7 @@ class InvalidValueException extends ValueException
1817
* @template TArgValue of mixed
1918
*
2019
* @param TArgValue $value
20+
*
2121
* @return self<TArgValue>
2222
*/
2323
public static function createFromPath(
@@ -40,6 +40,7 @@ public static function createFromPath(
4040
* @template TArgValue of mixed
4141
*
4242
* @param TArgValue $value
43+
*
4344
* @return self<TArgValue>
4445
*/
4546
public static function createFromContext(

src/Exception/Mapping/InvalidValueOfTypeException.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010

1111
/**
1212
* @template TValue of mixed = mixed
13-
*
1413
* @template-extends ValueOfTypeException<TValue>
1514
*/
1615
class InvalidValueOfTypeException extends ValueOfTypeException implements
1716
FinalExceptionInterface
1817
{
1918
/**
2019
* @template TArgValue of mixed
20+
*
2121
* @param TArgValue $value
22+
*
2223
* @return self<TArgValue>
2324
*/
2425
public static function createFromPath(
@@ -41,7 +42,9 @@ public static function createFromPath(
4142

4243
/**
4344
* @template TArgValue of mixed
45+
*
4446
* @param TArgValue $value
47+
*
4548
* @return self<TArgValue>
4649
*/
4750
public static function createFromContext(

src/Exception/Mapping/IterableException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
/**
1010
* @template TValue of iterable = iterable<mixed, mixed>
11-
*
1211
* @template-extends ValueException<TValue>
1312
*/
1413
abstract class IterableException extends ValueException implements
1514
FinalExceptionInterface
1615
{
1716
/**
18-
* @param TValue $value Unlike {@see ValueException::$value}, this exception
19-
* value can only be {@see iterable}.
17+
* @param TValue $value unlike {@see ValueException::$value}, this exception
18+
* value can only be {@see iterable}
2019
*/
2120
public function __construct(
2221
iterable $value,

src/Exception/Mapping/IterableKeyException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/**
1010
* @template TValue of iterable = iterable<mixed, mixed>
11-
*
1211
* @template-extends IterableException<TValue>
1312
*/
1413
abstract class IterableKeyException extends IterableException

src/Exception/Mapping/IterableValueException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/**
1010
* @template TValue of iterable = iterable<mixed, mixed>
11-
*
1211
* @template-extends IterableKeyException<TValue>
1312
*/
1413
abstract class IterableValueException extends IterableKeyException

src/Exception/Mapping/MissingRequiredObjectFieldException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
/**
1212
* @template TValue of array<array-key, mixed>|object = array<array-key, mixed>|object
13-
*
1413
* @template-extends ObjectFieldException<non-empty-string, TValue>
1514
*/
1615
class MissingRequiredObjectFieldException extends ObjectFieldException
@@ -20,6 +19,7 @@ class MissingRequiredObjectFieldException extends ObjectFieldException
2019
*
2120
* @param non-empty-string $field
2221
* @param TArgValue $value
22+
*
2323
* @return self<TArgValue>
2424
*/
2525
public static function createFromPath(
@@ -47,6 +47,7 @@ public static function createFromPath(
4747
*
4848
* @param non-empty-string $field
4949
* @param TArgValue $value
50+
*
5051
* @return self<TArgValue>
5152
*/
5253
public static function createFromContext(

0 commit comments

Comments
 (0)