🔧
This commit is contained in:
7
vendor/sebastian/global-state/ChangeLog.md
vendored
7
vendor/sebastian/global-state/ChangeLog.md
vendored
@@ -2,6 +2,12 @@
|
||||
|
||||
All notable changes in `sebastian/global-state` are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||
|
||||
## [6.0.2] - 2024-03-02
|
||||
|
||||
### Changed
|
||||
|
||||
* Do not use implicitly nullable parameters
|
||||
|
||||
## [6.0.1] - 2023-07-19
|
||||
|
||||
### Changed
|
||||
@@ -86,6 +92,7 @@ All notable changes in `sebastian/global-state` are documented in this file usin
|
||||
|
||||
* This component is no longer supported on PHP 7.0 and PHP 7.1
|
||||
|
||||
[6.0.2]: https://github.com/sebastianbergmann/global-state/compare/6.0.1...6.0.2
|
||||
[6.0.1]: https://github.com/sebastianbergmann/global-state/compare/6.0.0...6.0.1
|
||||
[6.0.0]: https://github.com/sebastianbergmann/global-state/compare/5.0.5...6.0.0
|
||||
[5.0.5]: https://github.com/sebastianbergmann/global-state/compare/5.0.4...5.0.5
|
||||
|
||||
2
vendor/sebastian/global-state/LICENSE
vendored
2
vendor/sebastian/global-state/LICENSE
vendored
@@ -1,6 +1,6 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2001-2023, Sebastian Bergmann
|
||||
Copyright (c) 2001-2024, Sebastian Bergmann
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
2
vendor/sebastian/global-state/composer.json
vendored
2
vendor/sebastian/global-state/composer.json
vendored
@@ -2,7 +2,7 @@
|
||||
"name": "sebastian/global-state",
|
||||
"description": "Snapshotting of global state",
|
||||
"keywords": ["global state"],
|
||||
"homepage": "http://www.github.com/sebastianbergmann/global-state",
|
||||
"homepage": "https://www.github.com/sebastianbergmann/global-state",
|
||||
"license": "BSD-3-Clause",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ final class CodeExporter
|
||||
'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n",
|
||||
$name,
|
||||
$name,
|
||||
$this->exportVariable($value)
|
||||
$this->exportVariable($value),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ EOT;
|
||||
$result .= sprintf(
|
||||
'$GLOBALS[%s] = %s;' . PHP_EOL,
|
||||
$this->exportVariable($name),
|
||||
$this->exportVariable($value)
|
||||
$this->exportVariable($value),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ EOT;
|
||||
$result .= sprintf(
|
||||
'@ini_set(%s, %s);' . "\n",
|
||||
$this->exportVariable($key),
|
||||
$this->exportVariable($value)
|
||||
$this->exportVariable($value),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
namespace SebastianBergmann\GlobalState;
|
||||
|
||||
use function in_array;
|
||||
use function strpos;
|
||||
use function str_starts_with;
|
||||
use ReflectionClass;
|
||||
|
||||
final class ExcludeList
|
||||
@@ -71,7 +71,7 @@ final class ExcludeList
|
||||
}
|
||||
|
||||
foreach ($this->classNamePrefixes as $prefix) {
|
||||
if (strpos($className, $prefix) === 0) {
|
||||
if (str_starts_with($className, $prefix)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ final class Restorer
|
||||
$keys = array_keys(
|
||||
array_merge(
|
||||
$GLOBALS[$superGlobalArray],
|
||||
$superGlobalVariables[$superGlobalArray]
|
||||
)
|
||||
$superGlobalVariables[$superGlobalArray],
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($keys as $key) {
|
||||
|
||||
@@ -51,7 +51,7 @@ class Snapshot
|
||||
private array $classes = [];
|
||||
private array $traits = [];
|
||||
|
||||
public function __construct(ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticProperties = true, bool $includeConstants = true, bool $includeFunctions = true, bool $includeClasses = true, bool $includeInterfaces = true, bool $includeTraits = true, bool $includeIniSettings = true, bool $includeIncludedFiles = true)
|
||||
public function __construct(?ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticProperties = true, bool $includeConstants = true, bool $includeFunctions = true, bool $includeClasses = true, bool $includeInterfaces = true, bool $includeTraits = true, bool $includeIniSettings = true, bool $includeIncludedFiles = true)
|
||||
{
|
||||
$this->excludeList = $excludeList ?: new ExcludeList;
|
||||
|
||||
@@ -340,7 +340,7 @@ class Snapshot
|
||||
/** @noinspection SlowArrayOperationsInLoopInspection */
|
||||
$result = array_merge(
|
||||
$result,
|
||||
$this->enumerateObjectsAndResources($element, $processed)
|
||||
$this->enumerateObjectsAndResources($element, $processed),
|
||||
);
|
||||
} else {
|
||||
$result[] = $element;
|
||||
@@ -358,7 +358,7 @@ class Snapshot
|
||||
/** @noinspection SlowArrayOperationsInLoopInspection */
|
||||
$result = array_merge(
|
||||
$result,
|
||||
$this->enumerateObjectsAndResources($value, $processed)
|
||||
$this->enumerateObjectsAndResources($value, $processed),
|
||||
);
|
||||
} else {
|
||||
$result[] = $value;
|
||||
|
||||
Reference in New Issue
Block a user