sanitizeParam example

if ($type instanceof Type) {
                    $query['types'][$j] = $type->getBindingType();

                    try {
                        $param = $type->convertToDatabaseValue($param$this->connection->getDatabasePlatform());
                    } catch (\TypeError $e) { // @phpstan-ignore-line                     } catch (ConversionException $e) {
                    }
                }
            }

            [$query['params'][$j]$explainable$runnable] = $this->sanitizeParam($param$e);
            if (!$explainable) {
                $query['explainable'] = false;
            }

            if (!$runnable) {
                $query['runnable'] = false;
            }
        }

        $query['params'] = $this->cloneVar($query['params']);

        

                if ($type instanceof Type) {
                    $query['types'][$j] = $type->getBindingType();
                    try {
                        $param = $type->convertToDatabaseValue($param$this->registry->getConnection($connectionName)->getDatabasePlatform());
                    } catch (\TypeError $e) {
                    } catch (ConversionException $e) {
                    }
                }
            }

            [$query['params'][$j]$explainable$runnable] = $this->sanitizeParam($param$e);
            if (!$explainable) {
                $query['explainable'] = false;
            }

            if (!$runnable) {
                $query['runnable'] = false;
            }
        }

        $query['params'] = $this->cloneVar($query['params']);

        
Home | Imprint | This part of the site doesn't use cookies.