whoami7 - Manager
:
/
home
/
techyfnq
/
www
/
wp-content
/
plugins
/
mailpoet
/
lib
/
Doctrine
/
Types
/
Upload File:
files >> //home/techyfnq/www/wp-content/plugins/mailpoet/lib/Doctrine/Types/BigIntType.php
<?php namespace MailPoet\Doctrine\Types; if (!defined('ABSPATH')) exit; use MailPoetVendor\Doctrine\DBAL\Platforms\AbstractPlatform; use MailPoetVendor\Doctrine\DBAL\Types\BigIntType as DoctrineBigIntType; use PDO; class BigIntType extends DoctrineBigIntType { // override Doctrine's bigint type that historically maps DB's "bigint" to PHP's "string" // (we want to map DB's "bigint" to PHP's "int" in today's 64-bit world) const NAME = 'bigint'; public function getBindingType() { return PDO::PARAM_INT; } public function convertToPHPValue($value, AbstractPlatform $platform) { return $value === null ? null : (int)$value; } public function getName() { return self::NAME; } }
Copyright ©2021 || Defacer Indonesia