This commit is contained in:
2025-02-04 12:40:43 +03:00
parent 4bcb4c60dd
commit 50343d5a87
372 changed files with 9019 additions and 6684 deletions

View File

@@ -2,12 +2,6 @@
All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
## [6.0.0] - 2025-02-07
### Removed
* This component is no longer supported on PHP 8.2
## [5.0.2] - 2024-10-09
### Changed
@@ -60,7 +54,6 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
* This component is no longer supported on PHP 7.1 and PHP 7.2
[6.0.0]: https://github.com/sebastianbergmann/version/compare/5.0...main
[5.0.2]: https://github.com/sebastianbergmann/version/compare/5.0.1...5.0.2
[5.0.1]: https://github.com/sebastianbergmann/version/compare/5.0.0...5.0.1
[5.0.0]: https://github.com/sebastianbergmann/version/compare/4.0...5.0.0

View File

@@ -1,6 +1,6 @@
BSD 3-Clause License
Copyright (c) 2013-2025, Sebastian Bergmann
Copyright (c) 2013-2024, Sebastian Bergmann
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@@ -16,15 +16,14 @@
},
"config": {
"platform": {
"php": "8.3.0"
"php": "8.2.0"
},
"optimize-autoloader": true,
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.3"
"php": ">=8.2"
},
"autoload": {
"classmap": [
@@ -33,7 +32,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "6.0-dev"
"dev-main": "5.0-dev"
}
}
}

View File

@@ -9,12 +9,9 @@
*/
namespace SebastianBergmann;
use const DIRECTORY_SEPARATOR;
use function assert;
use function end;
use function explode;
use function fclose;
use function is_array;
use function is_dir;
use function is_resource;
use function proc_close;
@@ -85,7 +82,7 @@ final readonly class Version
return false;
}
$process = @proc_open(
$process = proc_open(
['git', 'describe', '--tags'],
[
1 => ['pipe', 'w'],
@@ -99,10 +96,6 @@ final readonly class Version
return false;
}
assert(is_array($pipes));
assert(isset($pipes[1]) && is_resource($pipes[1]));
assert(isset($pipes[2]) && is_resource($pipes[2]));
$result = trim((string) stream_get_contents($pipes[1]));
fclose($pipes[1]);