20250204
This commit is contained in:
7
vendor/sebastian/version/ChangeLog.md
vendored
7
vendor/sebastian/version/ChangeLog.md
vendored
@@ -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
|
||||
|
2
vendor/sebastian/version/LICENSE
vendored
2
vendor/sebastian/version/LICENSE
vendored
@@ -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
|
||||
|
7
vendor/sebastian/version/composer.json
vendored
7
vendor/sebastian/version/composer.json
vendored
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
9
vendor/sebastian/version/src/Version.php
vendored
9
vendor/sebastian/version/src/Version.php
vendored
@@ -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]);
|
||||
|
Reference in New Issue
Block a user