Open decadence opened 4 months ago
Hello. Thanks for the Laravel Kit.
But sample code gives this error (while php artisan tinker works ok):
php artisan tinker
Code:
// Write your tinker code here use Illuminate\Foundation\Inspiring; Inspiring::quote();
Error Class "Psy\Exception\TypeErrorException" not found at resources\app\dist\tinker.php:114 110▕ $__psysh__->writeException($_e); 111▕ 112▕ throw $_e; 113▕ } catch (\TypeError $_e) { ➜ 114▕ $__psysh__->writeException(TypeErrorException::fromTypeError($_e)); 115▕ } catch (\Error $_e) { 116▕ $__psysh__->writeException(ErrorException::fromError($_e)); 117▕ } catch (\Exception $_e) { 118▕ $__psysh__->writeException($_e); 1 \vendor\psy\psysh\src\ExecutionClosure.php:89 2 resources\app\dist\tinker.php:153 Psy\ExecutionClosure::execute()
If I delete comment line output is just empty. If I write code in one line it works:
use Illuminate\Foundation\Inspiring; Inspiring::quote();
This code works in one line only too:
use App\Models\User; $user = User::find(1); echo $user->getKey();
Seems like Laravel Kit can handle only one line of code. If first line is comment I get Class "Psy\Exception\TypeErrorException" not found error.
Class "Psy\Exception\TypeErrorException" not found
Developer Tools console is empty.
Laravel: 10.44.0 PHP: 8.1.1 Laravel Kit: 2.0.8. System: Windows 11.
Or I get another error:
TYPE ERROR array_filter(): Argument #1 ($array) must be of type array, null given in \vendor\psy\psysh\src\Exception\TypeErrorException.php on line 54.
Hello. Thanks for the Laravel Kit.
But sample code gives this error (while
php artisan tinker
works ok):Code:
If I delete comment line output is just empty. If I write code in one line it works:
This code works in one line only too:
Seems like Laravel Kit can handle only one line of code. If first line is comment I get
Class "Psy\Exception\TypeErrorException" not found
error.Developer Tools console is empty.
Laravel: 10.44.0 PHP: 8.1.1 Laravel Kit: 2.0.8. System: Windows 11.