Composer upgrade

This commit is contained in:
Clemens Schwaighofer
2022-02-24 13:44:33 +09:00
parent f2c0ba737a
commit c8d7b308b3
86 changed files with 961 additions and 716 deletions

View File

@@ -9,6 +9,7 @@
*/
namespace SebastianBergmann\GlobalState;
use const PHP_VERSION_ID;
use function array_keys;
use function array_merge;
use function array_reverse;
@@ -137,7 +138,9 @@ class Snapshot
$this->includedFiles = get_included_files();
}
$this->traits = get_declared_traits();
if ($includeTraits) {
$this->traits = get_declared_traits();
}
}
public function excludeList(): ExcludeList
@@ -313,6 +316,11 @@ class Snapshot
}
$attribute->setAccessible(true);
if (PHP_VERSION_ID >= 70400 && !$attribute->isInitialized()) {
continue;
}
$value = $attribute->getValue();
if ($this->canBeSerialized($value)) {