mirror of
https://github.com/danog/ext-pq.git
synced 2024-11-30 04:19:49 +01:00
fix test if builtin json converter is not available
This commit is contained in:
parent
b44c00e047
commit
a1fc94a694
@ -131,7 +131,7 @@ $t = new pq\Types($c);
|
||||
|
||||
$c->setConverter(new HStoreConverter($t));
|
||||
$c->setConverter(new IntVectorConverter($t));
|
||||
if (!defined("pq\\Types::JSON")) {
|
||||
if (!(defined("pq\\Types::JSON") && defined("pq\\Result::CONV_JSON"))) {
|
||||
$c->setConverter(new JSONConverter($t));
|
||||
}
|
||||
$c->setConverter(new BoxConverter($t));
|
||||
|
Loading…
Reference in New Issue
Block a user