Skip to content

error on composer run devΒ #58

@utqinadhif

Description

@utqinadhif

Laravel Package Version

1.2

Laravel Version

12.32

PHP Version

8.4

Database Driver & Version

pgsql

Description

php artisan pail -vv ─╯

INFO Tailing application logs. Press Ctrl+C to exit
Use -v|-vv to show more details

JsonException

Syntax error

at vendor/laravel/pail/src/ValueObjects/MessageLogged.php:30
26β–• /
27β–• public static function fromJson(string $json): static
28β–• {
29β–• /
* @var array{message: string, context: array{__pail: array{origin: array{trace: array<int, array{file: string, line: int}>|null, type: string, queue: string, job: string, command: string, method: string, path: string, auth_id: ?string, auth_email: ?string}}, exception: array{class: string, file: string}}, level_name: string, datetime: string} $array */
➜ 30β–• $array = json_decode($json, true, 512, JSON_THROW_ON_ERROR);
31β–•
32β–• [
33β–• 'message' => $message,
34β–• 'datetime' => $datetime,

1 vendor/laravel/pail/src/ValueObjects/MessageLogged.php:30

2 vendor/laravel/pail/src/ProcessFactory.php:42
Laravel\Pail\ValueObjects\MessageLogged::fromJson()

3 [internal]:0
Laravel\Pail\ProcessFactory::{closure:{closure:Laravel\Pail\ProcessFactory::run():26}:42}()
4 vendor/laravel/framework/src/Illuminate/Collections/Arr.php:778

5 vendor/laravel/framework/src/Illuminate/Collections/Collection.php:814
Illuminate\Support\Arr::map()

6 vendor/laravel/pail/src/ProcessFactory.php:42
Illuminate\Support\Collection::map()

7 vendor/symfony/process/Process.php:1311
Laravel\Pail\ProcessFactory::{closure:Laravel\Pail\ProcessFactory::run():26}()

8 vendor/symfony/process/Process.php:1411
Symfony\Component\Process\Process::{closure:Symfony\Component\Process\Process::buildCallback():1304}()

9 vendor/symfony/process/Process.php:452
Symfony\Component\Process\Process::readPipes()

10 vendor/symfony/process/Process.php:251
Symfony\Component\Process\Process::wait()

11 vendor/laravel/framework/src/Illuminate/Support/HigherOrderTapProxy.php:33
Symfony\Component\Process\Process::run()

12 vendor/laravel/framework/src/Illuminate/Process/PendingProcess.php:258
Illuminate\Support\HigherOrderTapProxy::__call()

13 vendor/laravel/pail/src/ProcessFactory.php:24
Illuminate\Process\PendingProcess::run()

14 vendor/laravel/pail/src/Console/Commands/PailCommand.php:86
Laravel\Pail\ProcessFactory::run()

15 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
Laravel\Pail\Console\Commands\PailCommand::handle()

16 vendor/laravel/framework/src/Illuminate/Container/Util.php:43
Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()

17 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:96
Illuminate\Container\Util::unwrapIfClosure()

18 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35
Illuminate\Container\BoundMethod::callBoundMethod()

19 vendor/laravel/framework/src/Illuminate/Container/Container.php:836
Illuminate\Container\BoundMethod::call()

20 vendor/laravel/framework/src/Illuminate/Console/Command.php:211
Illuminate\Container\Container::call()

21 vendor/symfony/console/Command/Command.php:318
Illuminate\Console\Command::execute()

22 vendor/laravel/framework/src/Illuminate/Console/Command.php:180
Symfony\Component\Console\Command\Command::run()

23 vendor/symfony/console/Application.php:1110
Illuminate\Console\Command::run()

24 vendor/symfony/console/Application.php:359
Symfony\Component\Console\Application::doRunCommand()

25 vendor/symfony/console/Application.php:194
Symfony\Component\Console\Application::doRun()

26 vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:197
Symfony\Component\Console\Application::run()

27 vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1235
Illuminate\Foundation\Console\Kernel::handle()

28 artisan:13
Illuminate\Foundation\Application::handleCommand()

Steps To Reproduce

run: composer run dev

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions