webman的AOP报错,按照文档的做的测试

defence

php start.php restart
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Hyperf\Utils\Filesystem\Filesystem::lastModified() must be of the type string, bool given, called in /www/wwwroot/webman/vendor/hyperf/di/src/Annotation/Scanner.php on line 340 and defined in /www/wwwroot/webman/vendor/hyperf/utils/src/Filesystem/Filesystem.php:306

1917 2 0
2个回答

six

是不是忘记配置手册里的composer.json了?

  "autoload": {
    "psr-4": {
      "app\\": "app/"
    },
    "files": [
      "./support/helpers.php"
    ]
  }
  • defence 2021-01-22

    不是,全部按照文档配置的

  • six 2021-01-22

    我测试composer 里不加
    "psr-4": {
    "app\": "app/"
    },

    会抱你那个错,你试下吧。

  • defence 2021-01-23

    @1393:好的 麻烦你了 昨天本地测试了是好的 服务器上没动后来启服务也好了

admin

我和你有相同的问题,报错代码也一样,怎么搞的

年代过于久远,无法发表回答
🔝