[0] InvalidArgumentException in Container.php line 480

方法参数错误:name

  1. } elseif (1 == $type && !empty($vars)) {
  2. $args[] = array_shift($vars);
  3. } elseif (0 == $type && isset($vars[$name])) {
  4. $args[] = $vars[$name];
  5. } elseif (0 == $type && isset($vars[$lowerName])) {
  6. $args[] = $vars[$lowerName];
  7. } elseif ($param->isDefaultValueAvailable()) {
  8. $args[] = $param->getDefaultValue();
  9. } else {
  10. throw new InvalidArgumentException('method param miss:' . $name);
  11. }
  12. }
  13. return $args;
  14. }
  15. /**
  16. * 获取对象类型的参数值
  17. * @access protected

Call Stack

  1. in Container.php line 480
  2. at Container->bindParams(object(ReflectionMethod), []) in Container.php line 393
  3. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), []) in Module.php line 131
  4. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  5. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  6. at Middleware->think\{closure}(object(Request))
  7. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  8. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  9. at Module->exec() in Dispatch.php line 168
  10. at Dispatch->run() in App.php line 432
  11. at App->think\{closure}(object(Request), object(Closure), null)
  12. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  13. at Middleware->think\{closure}(object(Request))
  14. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  15. at Middleware->dispatch(object(Request)) in App.php line 435
  16. at App->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
$Version 1
security_session_verify 05e4befbf9cb2f5dda259c6939b7b823
$Path /
PHPSESSID s7k9lvejo7r0srr4phkh0qlljs
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID Zb9XAH8AAAEAAGexaFAAAAAE
REDIRECT_REDIRECT_gzip_only_text_html 1
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID Zb9XAH8AAAEAAGexaFAAAAAE
REDIRECT_gzip_only_text_html 1
REDIRECT_HANDLER application/x-httpd-php7
REDIRECT_STATUS 200
UNIQUE_ID Zb9XAH8AAAEAAGexaFAAAAAE
gzip_only_text_html 1
HTTP_REFERER http://www.yyitec.com/
HTTP_COOKIE $Version=1; security_session_verify=05e4befbf9cb2f5dda259c6939b7b823; $Path=/; PHPSESSID=s7k9lvejo7r0srr4phkh0qlljs; $Path=/
HTTP_CONNECTION keep-alive
HTTP_HOST www.yyitec.com
HTTP_USER_AGENT Mozilla/4.5 (compatible; 3.0x; Windows 98)
HTTP_ACCEPT text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1
HTTP_ACCEPT_LANGUAGE en, *
HTTP_ACCEPT_ENCODING gzip, identity;q=0.9
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.yyitec.com
SERVER_ADDR 122.114.118.102
SERVER_PORT 80
REMOTE_ADDR 38.207.248.66
DOCUMENT_ROOT /www/users/HA695256/WEB
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /www/users/HA695256/WEB/index.php
REMOTE_PORT 46794
REDIRECT_URL /index.php/favicon.ico
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /favicon.ico
SCRIPT_NAME /index.php
PATH_INFO /favicon.ico
PATH_TRANSLATED /www/users/HA695256/WEB/favicon.ico
ORIG_PATH_INFO /index.php/favicon.ico
ORIG_SCRIPT_NAME /php74-cgi
ORIG_SCRIPT_FILENAME /usr/local/zend/php7.4/bin/php-cgi
ORIG_PATH_TRANSLATED /www/users/HA695256/WEB/index.php/favicon.ico
PHP_SELF /index.php/favicon.ico
REQUEST_TIME_FLOAT 1707038464.1045
REQUEST_TIME 1707038464
Environment Variablesempty
ThinkPHP Constantsempty