martin-georgiev / postgresql-for-doctrine

PostgreSQL enhancements for Doctrine. Provides support for advanced data types (json, jssnb, arrays), text search, array operators and jsonb specific functions.

Home Page:https://packagist.org/packages/martin-georgiev/postgresql-for-doctrine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jsonb::convertToPHPValue(): Return value must be of type array|string|int|float|null, bool returned

Gemorroj opened this issue · comments

after upgrade to https://github.com/martin-georgiev/postgresql-for-doctrine/releases/tag/v2.0.0

Uncaught PHP Exception TypeError: "MartinGeorgiev\Doctrine\DBAL\Types\Jsonb::convertToPHPValue(): Return value must be of type array|string|int|float|null, bool returned

JsonTransformer::transformToPostgresJson may return bool value.

Can you please share the data that you are trying to transform?
The shared information needs to be more specific to debug the problem and add reasonable test scenarios for this regression.

Addressed in #131