Skip to content

Commit 7a633e4

Browse files
committed
More concise isResource.
1 parent 568ee2d commit 7a633e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/TypeFunctions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function isString($variable)
8282
*/
8383
function isResource($variable)
8484
{
85-
return \getType($variable) === "resource";
85+
return is_resource($variable);
8686
}
8787

8888
/**

0 commit comments

Comments
 (0)