Skip to content

Commit

Permalink
Exit with failure code when the version is not the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 31, 2024
1 parent 35470fe commit 0f9dcf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog-11.0.md
Expand Up @@ -22,6 +22,7 @@ All notable changes of the PHPUnit 11.0 release series are documented in this fi
* The format of the XML document generated using the `--list-tests-xml` CLI option has been changed
* `small`, `medium`, and `large` can no longer be used as group names with the `#[Group]` attribute
* A test can no longer be part of multiple test suites that are configured in the XML configuration file
* `--check-version` now exists with a shell exit code that indicates failure when the version is not the latest version

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion src/TextUI/Command/Commands/VersionCheckCommand.php
Expand Up @@ -56,6 +56,6 @@ public function execute(): Result
);
}

return Result::from($buffer);
return Result::from($buffer, Result::FAILURE);
}
}

0 comments on commit 0f9dcf7

Please sign in to comment.