Skip to content

Commit

Permalink
Do not treat deprecation level as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Aug 5, 2022
1 parent de42378 commit 293da73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Types/ArrayType.php
Expand Up @@ -45,6 +45,10 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
$value = is_resource($value) ? stream_get_contents($value) : $value;

set_error_handler(function (int $code, string $message): bool {
if ($code === \E_DEPRECATED || $code === \E_USER_DEPRECATED) {
return false;
}

throw ConversionException::conversionFailedUnserialization($this->getName(), $message);
});

Expand Down

0 comments on commit 293da73

Please sign in to comment.