beyondcode / invoker-community

74 stars 2 forks source link

Invoker in linux all bugs #360

Open xpdeal opened 1 year ago

xpdeal commented 1 year ago

OS: linux Invoker Version: 2.13.2 Laravel Version: 10.20.0 Local project: true PHP Binary: /usr/bin/php Route: /project/index?class=App%5CModels%5CAuto&time=1693031215072&project=local-ifY4PMHb35vwHETixeKkF3

Error:

Symfony\Component\ErrorHandler\Error\FatalError 

  Declaration of _HumbugBox4ff0af112613\Invoker\Metrics\MySqlTrendDateExpression::getValue() must be compatible with Illuminate\Database\Query\Expression::getValue(Illuminate\Database\Grammar $grammar)

  at phar:///tmp/invoker.phar/src/Metrics/MySqlTrendDateExpression.php:7
      3▕ namespace _HumbugBox4ff0af112613\Invoker\Metrics;
      4▕ 
      5▕ class MySqlTrendDateExpression extends \_HumbugBox4ff0af112613\Invoker\Metrics\TrendDateExpression
      6▕ {
  ➜   7▕     public function getValue()
      8▕     {
      9▕         switch ($this->unit) {
     10▕             case 'months':
     11▕                 return "date_format({$this->wrap($this->column)}, '%Y-%m')";

   Whoops\Exception\ErrorException 

  Declaration of _HumbugBox4ff0af112613\Invoker\Metrics\MySqlTrendDateExpression::getValue() must be compatible with Illuminate\Database\Query\Expression::getValue(Illuminate\Database\Grammar $grammar)

  at phar:///tmp/invoker.phar/src/Metrics/MySqlTrendDateExpression.php:7
      3▕ namespace _HumbugBox4ff0af112613\Invoker\Metrics;
      4▕ 
      5▕ class MySqlTrendDateExpression extends \_HumbugBox4ff0af112613\Invoker\Metrics\TrendDateExpression
      6▕ {
  ➜   7▕     public function getValue()
      8▕     {
      9▕         switch ($this->unit) {
     10▕             case 'months':
     11▕                 return "date_format({$this->wrap($this->column)}, '%Y-%m')";

      +1 vendor frames 

  2   [internal]:0
      Whoops\Run::handleShutdown()