Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PdoCaster.php

function PdoCaster::castPdoStatement

File

vendor/symfony/var-dumper/Caster/PdoCaster.php, line 111

Class

PdoCaster
Casts PDO related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castPdoStatement(\PDOStatement $c, array $a, Stub $stub, bool $isNested) : array {
    $prefix = Caster::PREFIX_VIRTUAL;
    $a[$prefix . 'errorInfo'] = $c->errorInfo();
    if (!isset($a[$prefix . 'errorInfo'][1], $a[$prefix . 'errorInfo'][2])) {
        unset($a[$prefix . 'errorInfo']);
    }
    return $a;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal