Aggiornato Composer
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user