@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | { |
| 104 | 104 | // defensive programming! |
| 105 | 105 | RequireObject::check($data, E4xx_UnsupportedType::class); |
| 106 | - RequireAnyOneOf::check([ new IsObject, new IsStringy], [$constraint], E4xx_UnsupportedType::class); |
|
| 106 | + RequireAnyOneOf::check([new IsObject, new IsStringy], [$constraint], E4xx_UnsupportedType::class); |
|
| 107 | 107 | |
| 108 | 108 | // this is the easiest test case of all :) |
| 109 | 109 | return $data instanceof $constraint; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | { |
| 125 | 125 | // defensive programming! |
| 126 | 126 | RequireStringy::check($data, E4xx_UnsupportedType::class); |
| 127 | - RequireAnyOneOf::check([ new IsObject, new IsStringy], [$constraint], E4xx_UnsupportedType::class); |
|
| 127 | + RequireAnyOneOf::check([new IsObject, new IsStringy], [$constraint], E4xx_UnsupportedType::class); |
|
| 128 | 128 | |
| 129 | 129 | $compatibleTypes = AllMatchingTypesList::fromClass($data); |
| 130 | 130 | if (is_object($constraint)) { |
@@ -49,9 +49,9 @@ |
||
| 49 | 49 | class RequireNotEmpty |
| 50 | 50 | { |
| 51 | 51 | /** |
| 52 | - * throws exceptions if $item is empty |
|
| 53 | - * |
|
| 54 | - * this is a wrapper around our IsEmpty check |
|
| 52 | + * throws exceptions if $item is empty |
|
| 53 | + * |
|
| 54 | + * this is a wrapper around our IsEmpty check |
|
| 55 | 55 | * |
| 56 | 56 | * @param mixed $itemName |
| 57 | 57 | * human-readable name of $item |