diff --git a/composer.json b/composer.json index b90e0d9..82e30fe 100644 --- a/composer.json +++ b/composer.json @@ -52,14 +52,15 @@ "maximebf/debugbar": "^1.19" }, "require-dev": { + "bamarni/composer-bin-plugin": "^1.8", "barryvdh/laravel-debugbar": "^3.7", "brainmaestro/composer-git-hooks": "^2.8 || ^3.0", "ergebnis/composer-normalize": "^2.28", - "friendsofphp/php-cs-fixer": "^3.35", + "friendsofphp/php-cs-fixer": "^3.46", "guanguans/ai-commit": "dev-main", - "guanguans/monorepo-builder-worker": "^1.2", + "guanguans/monorepo-builder-worker": "^1.4", "itsgoingd/clockwork": "^5.1", - "kubawerlos/php-cs-fixer-custom-fixers": "^3.16", + "kubawerlos/php-cs-fixer-custom-fixers": "^3.18", "laravel/legacy-factories": "^1.3", "laravel/lumen-framework": "^7.0 || ^8.0 || ^9.0 || ^10.0", "mockery/mockery": "^1.6", @@ -67,13 +68,13 @@ "pestphp/pest": "^1.23 || ^2.0", "pestphp/pest-plugin-faker": "^1.0 || ^2.0", "pestphp/pest-plugin-laravel": "^1.2 || ^2.0", - "php-mock/php-mock-phpunit": "^2.7", + "php-mock/php-mock-phpunit": "^2.9", "phpstan/extension-installer": "^1.3", "phpstan/phpstan-deprecation-rules": "^1.1", "rector/rector": "^0.18", "spatie/pest-plugin-snapshots": "^1.1 || ^2.0", - "spatie/ray": "^1.39", - "vimeo/psalm": "^5.15" + "spatie/ray": "^1.40", + "vimeo/psalm": "^5.18" }, "suggest": { "barryvdh/laravel-debugbar": "Output SQL scores to Laravel DebugBar.", @@ -100,7 +101,8 @@ "allow-plugins": { "pestphp/pest-plugin": true, "phpstan/extension-installer": true, - "ergebnis/composer-normalize": true + "ergebnis/composer-normalize": true, + "bamarni/composer-bin-plugin": true }, "apcu-autoloader": true, "classmap-authoritative": false, @@ -110,7 +112,7 @@ }, "extra": { "bamarni-bin": { - "bin-links": true, + "bin-links": false, "forward-command": true, "target-directory": "vendor-bin" }, @@ -167,7 +169,7 @@ "composer-unused": "@php ./vendor/bin/composer-unused --ansi -v", "composer-validate": "@composer validate --check-lock --strict --ansi -v", "facade-lint": "@facade-update --lint", - "facade-update": "/usr/local/opt/php@8.1/bin/php -f ./facade.php -- Guanguans\\\\LaravelSoar\\\\Facades\\\\Soar", + "facade-update": "/opt/homebrew/opt/php@8.1/bin/php -f ./facade.php -- Guanguans\\\\LaravelSoar\\\\Facades\\\\Soar", "json-lint": "@php ./vendor/bin/jsonlint *.json .*rc", "lint": [ "for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec /opt/homebrew/opt/php@7.4/bin/php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done", diff --git a/facade.php b/facade.php index 9865234..45b6f03 100644 --- a/facade.php +++ b/facade.php @@ -12,4 +12,6 @@ require __DIR__.'/vendor/autoload.php'; -require __DIR__.'/vendor/bin/facade.php'; +// require __DIR__.'/vendor/bin/facade.php'; + +require __DIR__.'/vendor-bin/facade-documenter/vendor/bin/facade.php'; diff --git a/src/Facades/Soar.php b/src/Facades/Soar.php index c10c0eb..797200d 100644 --- a/src/Facades/Soar.php +++ b/src/Facades/Soar.php @@ -15,7 +15,7 @@ use Illuminate\Support\Facades\Facade; /** - * @method static \Guanguans\SoarPHP\Soar create(array $options = [], null|string $soarPath = null) + * @method static \Guanguans\SoarPHP\Soar create(array $options = [], string|null $soarPath = null) * @method static string help() * @method static string version() * @method static \Guanguans\SoarPHP\Soar clone() @@ -40,11 +40,11 @@ * @method static string getSoarPath() * @method static \Guanguans\SoarPHP\Soar setSoarPath(string $soarPath) * @method static string|null getSudoPassword() - * @method static \Guanguans\SoarPHP\Soar setSudoPassword(null|string $sudoPassword) + * @method static \Guanguans\SoarPHP\Soar setSudoPassword(string|null $sudoPassword) * @method static void dd(void ...$args) * @method static \Guanguans\SoarPHP\Soar dump(void ...$args) - * @method static string run(array|string $withOptions = [], null|callable $processTapper = null, null|callable $callback = null) - * @method static \Guanguans\LaravelSoar\Soar|\Illuminate\Support\HigherOrderTapProxy tap(null|callable $callback = null) + * @method static string run(array|string $withOptions = [], callable|null $processTapper = null, callable|null $callback = null) + * @method static \Guanguans\LaravelSoar\Soar|\Illuminate\Support\HigherOrderTapProxy tap(callable|null $callback = null) * * @see \Guanguans\LaravelSoar\Soar *