From 772520781fefced400a0bf14f295f1913dc1810f Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 10 Jan 2025 12:21:39 +0800 Subject: [PATCH] Remove `phpExecutable` as `setPhpExecutable()` is now deprecated in upstream --- README.md | 1 - src/Factory.php | 4 ---- 2 files changed, 5 deletions(-) diff --git a/README.md b/README.md index dbe3729..702c811 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,6 @@ containing your desired options. | hideProgress | `bool` | `false` | | indent | `string` | `' '` // 4 spaces | | lineEnding | `string` | `"\n"` | -| phpExecutable | `null, string` | `null` | | isRiskyAllowed | `bool` | `false` | | usingCache | `bool` | `true` | | customRules | `array` | `[]` | diff --git a/src/Factory.php b/src/Factory.php index 8c57861..6a75499 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -34,7 +34,6 @@ final class Factory * hideProgress: bool, * indent: non-empty-string, * lineEnding: non-empty-string, - * phpExecutable: null|string, * isRiskyAllowed: bool, * usingCache: bool, * rules: array|bool> @@ -55,7 +54,6 @@ private function __construct(private RulesetInterface $ruleset, private array $o * hideProgress?: bool, * indent?: non-empty-string, * lineEnding?: non-empty-string, - * phpExecutable?: null|string, * isRiskyAllowed?: bool, * usingCache?: bool, * customRules?: array|bool> @@ -90,7 +88,6 @@ public static function create(RulesetInterface $ruleset, array $overrides = [], $options['hideProgress'] ??= false; $options['indent'] ??= ' '; $options['lineEnding'] ??= "\n"; - $options['phpExecutable'] ??= null; $options['isRiskyAllowed'] ??= $ruleset->willAutoActivateIsRiskyAllowed(); $options['usingCache'] ??= true; $options['rules'] = array_merge($ruleset->getRules(), $overrides, $options['customRules'] ?? []); @@ -168,7 +165,6 @@ private function invoke(array $overrides = []): ConfigInterface ->setHideProgress($this->options['hideProgress']) ->setIndent($this->options['indent']) ->setLineEnding($this->options['lineEnding']) - ->setPhpExecutable($this->options['phpExecutable']) ->setRiskyAllowed($this->options['isRiskyAllowed']) ->setUsingCache($this->options['usingCache']) ->setRules($rules)