搜索
系统检测到您的用户名不符合规范:

自动生成多应用目录报错

浏览:1534 发布日期: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


最佳答案
评论() 相关
后面还有条评论,
评论支持使用[code][/code]标签添加代码
您需要登录后才可以评论 登录 | 立即注册
收藏
zygzyx
积分:340 等级:LV2
热点推荐
(追記) (追記ここまで)
最新更新

我们

合作

网站

信息

ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。

AltStyle によって変換されたページ (->オリジナル) /