beyondcode / invoker-community

74 stars 2 forks source link

Can not make Trend Widget for Eloquent Model #361

Open alvl1011 opened 11 months ago

alvl1011 commented 11 months ago

Invoker Windows/MacOS Desktop App: Can not make Trend Widget for Eloquent Model .

OS: win32 Invoker Version: 2.13.2 Laravel Version: 10.0.0 PHP Binary: C:\php\php.exe PHP Version: 8.2.8 Route: /dashboard?project=remote-79w9ybvSK6fwRpqWxBFfsL

Error:

PHP Fatal error:  Declaration of _HumbugBox4ff0af112613\Invoker\Metrics\PostgresTrendDateExpression::getValue() must be compatible with Illuminate\Database\Query\Expression::getValue(Illuminate\Database\Grammar $grammar) in phar:///tmp/ploi_10_invoker.phar/src/Metrics/PostgresTrendDateExpression.php on line 7

As I think, the problem is in Laravel Update. I have updated laravel version to 10.x and found information about database expressions in official docs:

https://laravel.com/docs/10.x/upgrade#database-expressions

paulhennell commented 11 months ago

I'm getting the same for the MySql equivalent. Guessing an interface has changed its typehints or something?

Declaration of _HumbugBox4ff0af112613\Invoker\Metrics\MySqlTrendDateExpression::getValue() must be compatible with Illuminate\Database\Query\Expression::getValue(Illuminate\Database\Grammar $grammar) in phar:///tmp/ploi_10_invoker.phar/src/Metrics/MySqlTrendDateExpression.php on line 7