Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/var-dumper/Caster/PgSqlCaster.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/symfony/var-dumper/Caster/PgSqlCaster.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/var-dumper/Caster/PgSqlCaster.php Thu Feb 28 13:11:55 2019 +0000 @@ -20,7 +20,7 @@ */ class PgSqlCaster { - private static $paramCodes = array( + private static $paramCodes = [ 'server_encoding', 'client_encoding', 'is_superuser', @@ -31,17 +31,17 @@ 'integer_datetimes', 'application_name', 'standard_conforming_strings', - ); + ]; - private static $transactionStatus = array( + private static $transactionStatus = [ PGSQL_TRANSACTION_IDLE => 'PGSQL_TRANSACTION_IDLE', PGSQL_TRANSACTION_ACTIVE => 'PGSQL_TRANSACTION_ACTIVE', PGSQL_TRANSACTION_INTRANS => 'PGSQL_TRANSACTION_INTRANS', PGSQL_TRANSACTION_INERROR => 'PGSQL_TRANSACTION_INERROR', PGSQL_TRANSACTION_UNKNOWN => 'PGSQL_TRANSACTION_UNKNOWN', - ); + ]; - private static $resultStatus = array( + private static $resultStatus = [ PGSQL_EMPTY_QUERY => 'PGSQL_EMPTY_QUERY', PGSQL_COMMAND_OK => 'PGSQL_COMMAND_OK', PGSQL_TUPLES_OK => 'PGSQL_TUPLES_OK', @@ -50,9 +50,9 @@ PGSQL_BAD_RESPONSE => 'PGSQL_BAD_RESPONSE', PGSQL_NONFATAL_ERROR => 'PGSQL_NONFATAL_ERROR', PGSQL_FATAL_ERROR => 'PGSQL_FATAL_ERROR', - ); + ]; - private static $diagCodes = array( + private static $diagCodes = [ 'severity' => PGSQL_DIAG_SEVERITY, 'sqlstate' => PGSQL_DIAG_SQLSTATE, 'message' => PGSQL_DIAG_MESSAGE_PRIMARY, @@ -65,7 +65,7 @@ 'file' => PGSQL_DIAG_SOURCE_FILE, 'line' => PGSQL_DIAG_SOURCE_LINE, 'function' => PGSQL_DIAG_SOURCE_FUNCTION, - ); + ]; public static function castLargeObject($lo, array $a, Stub $stub, $isNested) { @@ -127,14 +127,14 @@ $fields = pg_num_fields($result); for ($i = 0; $i < $fields; ++$i) { - $field = array( + $field = [ 'name' => pg_field_name($result, $i), 'table' => sprintf('%s (OID: %s)', pg_field_table($result, $i), pg_field_table($result, $i, true)), 'type' => sprintf('%s (OID: %s)', pg_field_type($result, $i), pg_field_type_oid($result, $i)), 'nullable' => (bool) pg_field_is_null($result, $i), 'storage' => pg_field_size($result, $i).' bytes', 'display' => pg_field_prtlen($result, $i).' chars', - ); + ]; if (' (OID: )' === $field['table']) { $field['table'] = null; }