We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 38 | public function fix(StepResult $result): StepResult |
||
| 39 | { |
||
| 40 | $updated = $this->context()->updateComposerJson(function (array &$composer) { |
||
| 41 | $composer['minimum-stability'] = 'beta'; |
||
| 42 | }); |
||
| 43 | |||
| 44 | if (! $updated) { |
||
| 45 | return StepResult::failure('Could not update minimum-stability automatically.'); |
||
| 46 | } |
||
| 47 | |||
| 48 | return StepResult::success('minimum-stability set to beta in composer.json.'); |
||
| 49 | } |
||
| 51 |