自动生成多应用目录报错

浏览:484 发布日期:2022/01/19 分类:ThinkPHP6专区 关键字: 报错
PS F:\web\neilian> php think build admin
PHP Fatal error: During inheritance of ArrayAccess: Uncaught think\exception\ErrorException: Return type of think\Request::offsetGet($name) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in F:\web\neilian\vendor\topthink\framework\src\think\Request.php:2156
Stack trace:
#0 F:\web\neilian\vendor\topthink\framework\src\think\Request.php(23): think\initializer\Error->appError()
#1 F:\web\neilian\vendor\composer\ClassLoader.php(571): include('...')
#2 F:\web\neilian\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile()
#3 F:\web\neilian\app\Request.php(5): Composer\Autoload\ClassLoader->loadClass()
#4 F:\web\neilian\vendor\composer\ClassLoader.php(571): include('...')
#5 F:\web\neilian\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile()
#6 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#7 F:\web\neilian\vendor\topthink\framework\src\think\Container.php(375): ReflectionClass->__construct()
#8 F:\web\neilian\vendor\topthink\framework\src\think\Container.php(251): think\Container->invokeClass()
#9 F:\web\neilian\vendor\topthink\framework\src\think\Console.php(156): think\Container->make()
#10 F:\web\neilian\vendor\topthink\framework\src\think\Console.php(112): think\Console->makeRequest()
#11 F:\web\neilian\vendor\topthink\framework\src\think\Console.php(94): think\Console->initialize()
#12 [internal function]: think\Console->__construct()
#13 F:\web\neilian\vendor\topthink\framework\src\think\Container.php(394): ReflectionClass->newInstanceArgs()
#14 F:\web\neilian\vendor\topthink\framework\src\think\Container.php(251): think\Container->invokeClass()
#15 F:\web\neilian\vendor\topthink\framework\src\think\Container.php(130): think\Container->make()
#16 F:\web\neilian\vendor\topthink\framework\src\think\Container.php(510): think\Container->get()
#17 F:\web\neilian\think(10): think\Container->__get()
#18 {main} in F:\web\neilian\vendor\topthink\framework\src\think\Request.php on line 23
PHP Fatal error: Uncaught think\exception\ErrorException: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in F:\web\neilian\vendor\topthink\framework\src\think\console\output\driver\Console.php:175
Stack trace:
#0 [internal function]: think\initializer\Error->appError()
#1 F:\web\neilian\vendor\topthink\framework\src\think\console\output\driver\Console.php(175): preg_match()
#2 F:\web\neilian\vendor\topthink\framework\src\think\console\output\driver\Console.php(145): think\console\output\driver\Console->getTerminalDimensions()
#3 F:\web\neilian\vendor\topthink\framework\src\think\console\output\driver\Console.php(82): think\console\output\driver\Console->getTerminalWidth()
#4 F:\web\neilian\vendor\topthink\framework\src\think\console\Output.php(167): think\console\output\driver\Console->renderException()
#5 F:\web\neilian\vendor\topthink\framework\src\think\exception\Handle.php(126): think\console\Output->renderException()
#6 F:\web\neilian\vendor\topthink\framework\src\think\initializer\Error.php(56): think\exception\Handle->renderForConsole()
#7 F:\web\neilian\vendor\topthink\framework\src\think\initializer\Error.php(91): think\initializer\Error->appException()
#8 [internal function]: think\initializer\Error->appShutdown()
#9 {main}
thrown in F:\web\neilian\vendor\topthink\framework\src\think\console\output\driver\Console.php on line 175


最佳答案
评论( 相关
后面还有条评论,点击查看>>