|
@@ -103,7 +103,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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)) { |
Please login to merge, or discard this patch.