We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function run(): StepResult |
||
| 17 | { |
||
| 18 | $prettyVersion = $this->context()->installedPackagePrettyVersion('laravel/framework') ?? app()->version(); |
||
|
|
|||
| 19 | $major = $this->context()->packageMajorVersion('laravel/framework'); |
||
| 20 | |||
| 21 | if ($major !== null && $major >= 12) { |
||
| 22 | return StepResult::success("Detected Laravel {$prettyVersion}."); |
||
| 23 | } |
||
| 24 | |||
| 25 | return StepResult::failure( |
||
| 26 | 'Upgrade Laravel to version 12 before continuing.', |
||
| 27 | ["Detected Laravel version: {$prettyVersion}"] |
||
| 28 | ); |
||
| 31 |