Skip to content

Commit

Permalink
Remove phpExecutable as setPhpExecutable() is now deprecated in u…
Browse files Browse the repository at this point in the history
…pstream
  • Loading branch information
paulbalandan committed Jan 10, 2025
1 parent f14b6b4 commit 7725207
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | `[]` |
Expand Down
4 changes: 0 additions & 4 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, array<string, mixed>|bool>
Expand All @@ -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<string, array<string, mixed>|bool>
Expand Down Expand Up @@ -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'] ?? []);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7725207

Please sign in to comment.