ProxyManager: Null Object proxy

Code
<?php

use ProxyManager\Factory\NullObjectFactory;

class 
Foo
{
    public function 
__construct()
    {
        throw new 
Exception('oops, something went wrong');
    }
    
    public function 
bar()
    {
        return 
'bar';
    }
}

try {
    
$foo = new Foo();
}
catch (
Exception $e) {
    
$factory = new NullObjectFactory();
    
$foo $factory->createProxy(Foo::CLASS);
}

dump($foo->bar());
Result
^ null
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8