File manager - Edit - /var/www/payraty/hris/vendor/doctrine/dbal/src/Platforms/MySQL/CharsetMetadataProvider/ConnectionCharsetMetadataProvider.php
Back
<?php declare(strict_types=1); namespace Doctrine\DBAL\Platforms\MySQL\CharsetMetadataProvider; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Exception; use Doctrine\DBAL\Platforms\MySQL\CharsetMetadataProvider; /** @internal */ final class ConnectionCharsetMetadataProvider implements CharsetMetadataProvider { public function __construct(private readonly Connection $connection) { } /** @throws Exception */ public function getDefaultCharsetCollation(string $charset): ?string { $collation = $this->connection->fetchOne( <<<'SQL' SELECT DEFAULT_COLLATE_NAME FROM information_schema.CHARACTER_SETS WHERE CHARACTER_SET_NAME = ?; SQL , [$charset], ); if ($collation !== false) { return $collation; } return null; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings