Skip to content

Commit 51fe616

Browse files
Merge branch '4.4' into 5.1
* 4.4: Dont allow unserializing classes with a destructor Dont allow unserializing classes with a destructor - 4.4 [Cache] fix possible collision when writing tmp file in filesystem adapter a colon followed by spaces exclusively separates mapping keys and values Contracts: Remove ellipsis fix handling float-like key attribute values Fix missing BCC recipients in SES bridge
2 parents 6c03885 + 3ee8304 commit 51fe616

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Loader/Configurator/AbstractConfigurator.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public function __call(string $method, array $args)
4040
throw new \BadMethodCallException(sprintf('Call to undefined method "%s::%s()".', static::class, $method));
4141
}
4242

43+
public function __sleep()
44+
{
45+
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
46+
}
47+
48+
public function __wakeup()
49+
{
50+
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
51+
}
52+
4353
/**
4454
* Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
4555
*

0 commit comments

Comments
 (0)