/home
/wwwroot
/zhongbo
/zhongbo
/vendor
/catfan
/medoo
/src
/Medoo.php
throw new InvalidArgumentException('Incorrect connection options');
}
$driver = $attr[ 'driver' ];
if (!in_array($driver, PDO::getAvailableDrivers()))
{
throw new InvalidArgumentException("Unsupported PDO driver: {$driver}");
}
unset($attr[ 'driver' ]);
$stack = [];
foreach ($attr as $key => $value)
{
$stack[] = is_int($key) ? $value : $key . '=' . $value;
}
$dsn = $driver . ':' . implode($stack, ';');
if (
in_array($this->type, ['mysql', 'pgsql', 'sybase', 'mssql']) &&
isset($options[ 'charset' ])
)
{
$commands[] = "SET NAMES '{$options[ 'charset' ]}'" . (
$this->type === 'mysql' && isset($options[ 'collation' ]) ?
" COLLATE '{$options[ 'collation' ]}'" : ''
);
}
$this->dsn = $dsn;
try {
$this->pdo = new PDO(
$dsn,
isset($options[ 'username' ]) ? $options[ 'username' ] : null,
isset($options[ 'password' ]) ? $options[ 'password' ] : null,
$option
Fatal error: During inheritance of ArrayAccess: Uncaught Whoops\Exception\ErrorException: Return type of Symfony\Component\VarDumper\Cloner\Data::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/Data.php:135
Stack trace:
#0 /home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(244): Whoops\Run->handleError()
#1 /home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/Data.php(19): Symfony\Component\VarDumper\Cloner\AbstractCloner->Symfony\Component\VarDumper\Cloner\{closure}()
#2 /home/wwwroot/zhongbo/zhongbo/vendor/composer/ClassLoader.php(444): include('...')
#3 /home/wwwroot/zhongbo/zhongbo/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
#4 /home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(255): Composer\Autoload\ClassLoader->loadClass()
#5 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(169): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar()
#6 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(208): Whoops\Util\TemplateHelper->dump()
#7 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(37): Whoops\Util\TemplateHelper->dumpArgs()
#8 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#9 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#10 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#11 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php(1): Whoops\Util\TemplateHelper->render()
#12 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#13 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#14 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#15 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php(2): Whoops\Util\TemplateHelper->render()
#16 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#17 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#18 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#19 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(23): Whoops\Util\TemplateHelper->render()
#20 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#21 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#22 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#23 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(252): Whoops\Util\TemplateHelper->render()
#24 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle()
#25 [internal function]: Whoops\Run->handleException()
#26 {main} in
/home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/Data.php on line
19
框架出错
Stack frames (1)
0
Whoops
\Exception
\ErrorException
…
/
vendor
/
symfony
/
var-dumper
/
Cloner
/
Data.php
19
/home
/wwwroot
/zhongbo
/zhongbo
/vendor
/symfony
/var-dumper
/Cloner
/Data.php
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\VarDumper\Cloner;
use Symfony\Component\VarDumper\Caster\Caster;
/**
* @author Nicolas Grekas <p@tchwork.com>
*/
class Data implements \ArrayAccess, \Countable, \IteratorAggregate
{
private $data;
private $position = 0;
private $key = 0;
private $maxDepth = 20;
private $maxItemsPerDepth = -1;
private $useRefHandles = -1;
/**
* @param array $data An array as returned by ClonerInterface::cloneVar()
*/
public function __construct(array $data)
{
$this->data = $data;
}
/**
* @return string The type of the value
*/
public function getType()
{
Fatal error: Uncaught Error: Class "Symfony\Component\VarDumper\Cloner\Data" not found in /home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:255
Stack trace:
#0 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(169): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar()
#1 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(208): Whoops\Util\TemplateHelper->dump()
#2 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(37): Whoops\Util\TemplateHelper->dumpArgs()
#3 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#4 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#5 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#6 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php(1): Whoops\Util\TemplateHelper->render()
#7 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#8 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#9 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#10 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php(2): Whoops\Util\TemplateHelper->render()
#11 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#12 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#13 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#14 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(23): Whoops\Util\TemplateHelper->render()
#15 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('...')
#16 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
#17 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func()
#18 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(252): Whoops\Util\TemplateHelper->render()
#19 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle()
#20 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Run.php(353): Whoops\Run->handleException()
#21 /home/wwwroot/zhongbo/zhongbo/vendor/filp/whoops/src/Whoops/Run.php(382): Whoops\Run->handleError()
#22 [internal function]: Whoops\Run->handleShutdown()
#23 {main}
thrown in
/home/wwwroot/zhongbo/zhongbo/vendor/symfony/var-dumper/Cloner/AbstractCloner.php on line
255