Skip to content

Bug: Skip argv is no longer working in laravel 10 #1078

@robertmarney

Description

@robertmarney

Versions:

Package: 6.0
Laravel: 10.8.0

Problem:

Skip is no longer working, the command is using in_array comparision, but the haystack is a single item array of all skip items.

Suggest using

if ($this->option('skip')) {
            return in_array($skip, explode(",", $this->option('skip') ?? '') );
        }

        return false;

Ugly but see this DD for more clarity.

image

image

Metadata

Metadata

Assignees

No one assigned

    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