Skip to content

Commit d07b1fc

Browse files
committed
Made chekc for null only.
1 parent 23165f1 commit d07b1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Optional.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function callWithParameters($callable, $parameters)
7777
*/
7878
protected function isNotNone($result)
7979
{
80-
return !empty($result);
80+
return $result !== null;
8181
}
8282

8383
/**

0 commit comments

Comments
 (0)