Skip to content

Commit 61cbcdf

Browse files
committed
isset() instead empty() condition
1 parent 88ea163 commit 61cbcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Vartypes/Integer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Integer
3939
public function __construct($value)
4040
{
4141
$value = (integer)$value;
42-
if (!empty($value)) {
42+
if (isset($value)) {
4343
$this->value = $value;
4444
} else {
4545
throw new \Exception('Value must be ' . __CLASS__ . ' type but is ' . gettype($value));

0 commit comments

Comments
 (0)