Aggiornato Composer

This commit is contained in:
Paolo A
2024-05-17 12:24:19 +00:00
parent 4ac62108b5
commit ec201d75b2
2238 changed files with 38684 additions and 59785 deletions

View File

@@ -2,6 +2,18 @@
All notable changes in `sebastian/global-state` are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
## [5.0.7] - 2024-03-02
### Changed
* Do not use implicitly nullable parameters
## [5.0.6] - 2023-08-02
### Changed
* Changed usage of `ReflectionProperty::setValue()` to be compatible with PHP 8.3
## [5.0.5] - 2022-02-14
### Fixed
@@ -66,6 +78,8 @@ 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
[5.0.7]: https://github.com/sebastianbergmann/global-state/compare/5.0.6...5.0.7
[5.0.6]: https://github.com/sebastianbergmann/global-state/compare/5.0.5...5.0.6
[5.0.5]: https://github.com/sebastianbergmann/global-state/compare/5.0.4...5.0.5
[5.0.4]: https://github.com/sebastianbergmann/global-state/compare/5.0.3...5.0.4
[5.0.3]: https://github.com/sebastianbergmann/global-state/compare/5.0.2...5.0.3

View File

@@ -85,7 +85,7 @@ class Restorer
foreach ($staticAttributes as $name => $value) {
$reflector = new ReflectionProperty($className, $name);
$reflector->setAccessible(true);
$reflector->setValue($value);
$reflector->setValue(null, $value);
}
}
@@ -109,7 +109,7 @@ class Restorer
}
$attribute->setAccessible(true);
$attribute->setValue($defaults[$name]);
$attribute->setValue(null, $defaults[$name]);
}
}
}

View File

@@ -101,7 +101,7 @@ class Snapshot
/**
* Creates a snapshot of the current global state.
*/
public function __construct(ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticAttributes = 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 $includeStaticAttributes = 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;