Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error when running Crud command from console #277

@gottaloveit

Description

@gottaloveit

Per the docs, I run

php artisan lit:crud Profile

I get the following:


   Error

  Call to undefined method PhpCsFixer\Config::create()

  at vendor/litstack/litstack/fixer/.php_cs_config:124
    120▕     'whitespace_after_comma_in_array' => true,
    121▕     'method_chaining_indentation' => true,
    122▕ ];
    123▕
  ➜ 124▕ return PhpCsFixer\Config::create()
    125▕     ->setRules($rules)
    126▕     ->setLineEnding("\n");
    127▕

      +16 vendor frames
  17  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

I found this information: phpcsfixer bug

Laravel Framework 9.5.1
Composer version 2.2.7 2022-02-25 11:12:27
php-cs-fixer: version 3.8.0

composer.json requires

    "require": {
        "php": "^8.0.2",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/framework": "^9.2",
        "laravel/sanctum": "^2.14.1",
        "laravel/tinker": "^2.7",
        "litstack/litstack": "^3.7"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^6.1",
        "phpunit/phpunit": "^9.5.10",
        "spatie/laravel-ignition": "^1.0"
    },

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions