Closed mortenscheel closed 1 year ago
You need to use non-associated arguments. I don't think we document it with arguments?
You need to use non-associated arguments. I don't think we document it with arguments?
Still it's an inconsistency that you wouldn't expect in a framework that is otherwise very consistent. If there is a practical reason why they have to different, that's fine, but in this case it seems completely unnecessary.
Laravel Version
10.15.0
PHP Version
8.2.4
Database Driver & Version
Not relevant
Description
Take this simple Artisan commands, which has a named argument:
When called via the Artisan facade like this, it works fine:
Output:
But when run through the scheduler like this:
Then the argument name is included in the argument value:
The same is not true for options. They are parsed the same way in both cases. I realize that it's simple to fix by using a non-associative array in stead like this
But I hope you'll consider either mentioning this difference in the docs or make the argument parsing more consistent.
Steps To Reproduce
See example in the description