Skip to content

Commit

Permalink
sdlkfj
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jan 25, 2022
1 parent 200a8cd commit f0a7298
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ awareness about deprecated code.

# Upgrade to 4.0

## BC BREAK: Removed `Type::getName()`

As a consequence, only types extending `JsonType` or that type itself can have
the `jsonb` platform option set.

## BC BREAK: Deployed database schema no longer contains the information about abstract data types

Database column comments no longer contain type comments added by DBAL.
Expand Down
2 changes: 1 addition & 1 deletion src/Types/ArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function convertToPHPValue(mixed $value, AbstractPlatform $platform): mix

$value = is_resource($value) ? stream_get_contents($value) : $value;

set_error_handler(function (int $code, string $message) use ($value): bool {
set_error_handler(static function (int $code, string $message) use ($value): bool {
throw ValueNotConvertible::new($value, 'array', $message);
});

Expand Down
2 changes: 1 addition & 1 deletion src/Types/ObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function convertToPHPValue(mixed $value, AbstractPlatform $platform): mix

$value = is_resource($value) ? stream_get_contents($value) : $value;

set_error_handler(function (int $code, string $message) use ($value): bool {
set_error_handler(static function (int $code, string $message) use ($value): bool {
throw ValueNotConvertible::new($value, 'object', $message);
});

Expand Down

0 comments on commit f0a7298

Please sign in to comment.