You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 use preg_replace("/(.+)\.php$/", "$1", $filename); or basename($filename, '.php') functions.
The text was updated successfully, but these errors were encountered:
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: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.The text was updated successfully, but these errors were encountered: