Recently I installed Laravel Lang with Publisher and added the Italian language using the command php artisan lang:add it and worked like a charm, after installing it I've edited my composer.json to run this language on post-root-package-install script and php artisan lang:update on post-update-cmd script.
Today I needed to install Pest, after the package installation, the update failed when reaching the Italian language with this error:
INFO LaravelLang\Attributes\Plugin.
Collect source .......................................................................................................................... 4ms DONE
Collecting en ........................................................................................................................... 2ms DONE
ArgumentCountError
Too few arguments to function it(), 0 passed in D:\git\sms-crm\vendor\dragon-code\support\src\Instances\Call.php on line 181 and at least 1 expected
at D:\git\sms-crm\vendor\pestphp\pest\src\Functions.php:110
106▕ * a closure that contains the test expectations.
107▕ *
108▕ * @return TestCall|TestCase|mixed
109▕ */
➜ 110▕ function it(string $description, Closure $closure = null): TestCall
111▕ {
112▕ $description = sprintf('it %s', $description);
113▕
114▕ return test($description, $closure);
1 D:\git\sms-crm\vendor\dragon-code\support\src\Instances\Call.php:181
it()
2 D:\git\sms-crm\vendor\dragon-code\support\src\Facades\Facade.php:29
DragonCode\Support\Instances\Call::value("it")
This error is thrown every time the command php artisan lang:update is executed.
Description:
Recently I installed Laravel Lang with Publisher and added the Italian language using the command
php artisan lang:add it
and worked like a charm, after installing it I've edited mycomposer.json
to run this language onpost-root-package-install
script andphp artisan lang:update
onpost-update-cmd
script.Today I needed to install Pest, after the package installation, the update failed when reaching the Italian language with this error:
This error is thrown every time the command
php artisan lang:update
is executed.Steps To Reproduce:
php artisan lang:add it
;php artisan lang:update
.