Skip to content

Migration Action throws error when there are non Action files within the actions folder #100

Closed
@milewski

Description

@milewski

Environment

  • PHP Version: 8.1
  • Database Driver & Version: MySQL
  • Migration Actions Version: 3.x
  • Laravel Version: 9.x

Issue description

I have a subfolder within my actions folder that does not contain Action classes.. example:

image

By Running php artisan migrate:actions I get the following error:

  DragonCode\LaravelActions\Services\Migrator::resolveAction(): Return value must be of type DragonCode\LaravelActions\Action, int returned

I think files that do not extend Action shouldn't be taken into account or files that don't start with xxxx_xx_xx_xxxxx_..... etc...

Steps to reproduce

Create any file within a subfolder inside the actions directory and run php artisan migrate:actions

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