Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
Signed-off-by: Filippo Tessarotto <[email protected]>
  • Loading branch information
Slamdunk committed Dec 1, 2021
1 parent 17ff7fc commit d844fcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Serializable;
use UnexpectedValueException;

use function array_key_exists;
use function array_keys;
use function asort;
use function class_exists;
Expand Down Expand Up @@ -480,7 +481,7 @@ public function __unserialize($data)
unset($data['storage']);
}

if (array_key_exists('iteratorClass', $data) {
if (array_key_exists('iteratorClass', $data)) {
if (! is_string($data['iteratorClass'])) {
throw new UnexpectedValueException(sprintf(
'Cannot deserialize %s instance: invalid iteratorClass; expected string, received %s',
Expand Down

0 comments on commit d844fcf

Please sign in to comment.