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 | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function run(): StepResult |
||
| 19 | { |
||
| 20 | $this->currentStability = $this->context()->composerMinimumStability() ?? 'stable'; |
||
| 21 | $stability = $this->currentStability; |
||
| 22 | |||
| 23 | if (in_array($stability, ['beta', 'alpha', 'dev'], true)) { |
||
| 24 | return StepResult::success("minimum-stability is set to {$stability}."); |
||
| 25 | } |
||
| 26 | |||
| 27 | return StepResult::failure( |
||
| 28 | 'Set minimum-stability to beta (or more permissive) so Composer can install Backpack v7 beta releases.', |
||
| 29 | ["Current minimum-stability: {$stability}"] |
||
| 30 | ); |
||
| 51 |