Skip to content

Commit 2e091b1

Browse files
authored
Merge pull request #98 from wendelin/master
check for null in the Reader constructor
2 parents 794bce9 + 98d6909 commit 2e091b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/EDI/Reader.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class Reader
2828
*/
2929
public function __construct(string $url = null)
3030
{
31-
$this->load($url);
31+
if (isset($url)) {
32+
$this->load($url);
33+
}
3234
}
3335

3436
/**

0 commit comments

Comments
 (0)