Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error while parsing operation name ending with "p". #26

Open
@ozamorowski

Description

@ozamorowski

Hello.

This package is great, but today I run into small problem.

When running single operation with name provided
sail artisan operations:process 2023_11_10_170704_add_products_to_b2b_group.php

I got an error:
ERROR File 2023_11_10_170704_add_products_to_b2b_grou.php does not exist.

Note that file name in error message is missing last "p".

The problem most probably exists in/src/Commands/OneTimeOperationsProcessCommand.php on line 63 with rtrim function:

protectedfunction proccessSingleOperation(string$providedOperationName):int    {$providedOperationName =str($providedOperationName)->rtrim('.php')->toString();

I've found similar issue on stackoverflow:https://stackoverflow.com/questions/19473603/php-rtrim-php suggesting that we can usepreg_replace("/(.+)\.php$/", "$1", $filename); orbasename($filename, '.php') functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp