Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Jun 18, 2024
1 parent 3bf0734 commit d77d59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function parse(string &$data, string $encoding, string $url = '')
$stream_data = fread($stream, 1048576);
// NB: At some point between PHP 7.3 and 7.4, the documented signature for `fread()` has changed
// from returning `string` to returning `string|false`, and in older versions, it used to be `string|null`,
// hense the falsy check:
// hence the falsy check:
if (!xml_parse($xml, $stream_data == false ? '' : $stream_data, feof($stream))) {
$this->error_code = xml_get_error_code($xml);
$this->error_string = xml_error_string($this->error_code);
Expand Down

0 comments on commit d77d59b

Please sign in to comment.