Skip to content

Commit 8cc9bd9

Browse files
committed
Make 1251f4b work on HHVM.
Refs: facebook/hhvm#4670
1 parent f01ca2f commit 8cc9bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/Constraint/IsType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function matches($other)
129129
}
130130

131131
case 'resource': {
132-
return is_resource($other) || strtolower(@get_resource_type($other)) === 'unknown';
132+
return is_resource($other) || is_string(@get_resource_type($other));
133133
}
134134

135135
case 'scalar': {

0 commit comments

Comments
 (0)