Composer upgrade
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user