Skip to content

Faker dependency missing on demo #34

@llaville

Description

@llaville

Current version (7.2.5, commit c4d0dfd) have a demo folder that requires a Faker dependency.

Either you

Current behavior

Cli-JBZoo/demo on git branch master via php v8.2.31
container  [Docker] > ./my-app progress-bar -c simple

Fatal error: Uncaught Error: Class "Faker\Factory" not found in /shared/backups/github/Cli-JBZoo/demo/Commands/DemoProgressBar.php on line 156

Error: Class "Faker\Factory" not found in /shared/backups/github/Cli-JBZoo/demo/Commands/DemoProgressBar.php on line 156

Call Stack:
    0.0002     986376   1. {main}() /shared/backups/github/Cli-JBZoo/demo/my-app:0
    0.0125    2945624   2. JBZoo\Cli\CliApplication->run() /shared/backups/github/Cli-JBZoo/demo/my-app:56
    0.0193    3227328   3. JBZoo\Cli\CliApplication->doRun() /shared/backups/github/Cli-JBZoo/demo/vendor/symfony/console/Application.php:195
    0.0238    3254488   4. JBZoo\Cli\CliApplication->doRunCommand() /shared/backups/github/Cli-JBZoo/demo/vendor/symfony/console/Application.php:356
    0.0238    3254488   5. DemoApp\Commands\DemoProgressBar->run() /shared/backups/github/Cli-JBZoo/demo/vendor/symfony/console/Application.php:1094
    0.0239    3257904   6. DemoApp\Commands\DemoProgressBar->execute() /shared/backups/github/Cli-JBZoo/demo/vendor/symfony/console/Command/Command.php:341
    0.0288    3462512   7. DemoApp\Commands\DemoProgressBar->executeAction() /shared/backups/github/Cli-JBZoo/demo/vendor/jbzoo/cli/src/CliCommand.php:162
    0.0288    3462512   8. DemoApp\Commands\DemoProgressBar->prepareListOfDemoUsers() /shared/backups/github/Cli-JBZoo/demo/Commands/DemoProgressBar.php:50

Expected behavior

Cli-JBZoo/demo on git branch master [!] via php v8.2.31
container  [Docker] > ./my-app progress-bar -c simple
100% (5 / 5) [••••••••••••••••••••••••••••••••••••••••] 👌 00:00:04/00:00:04 | 5.8 MiB
Last Step Message: n/a

After running command composer require fakerphp/faker

./composer.json has been updated
Running composer update fakerphp/faker
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking fakerphp/faker (v1.24.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing fakerphp/faker (v1.24.1): Extracting archive
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^1.24 for fakerphp/faker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions