Version: 3.0.11
Bug Description
Serialization of Closure is not allowed Exception thrown when using new in constructor (PHP 8.1 feature).
Caused by return md5(serialize($hash)); from DependencyChecker.php:165

Steps To Reproduce
Write and register class with constructor like this:
public function __construct(
$clientCredentials,
?SignatureInterface $signature = null,
private GuzzleHttpClient $httpClient = new GuzzleHttpClient()
) {}
Expected Behavior
Successfully compile DI container.