Could not parse the type `\stdClass&object{info: string}` that should be mapped: Invalid intersection member `object`, it must be a class name or an interface name
(new \CuyZ\Valinor\MapperBuilder())
->allowSuperfluousKeys()
->allowPermissiveTypes()
->mapper()
->map(
'\stdClass&object{info: string}',
\CuyZ\Valinor\Mapper\Source\Source::json($string),
);
Apparently, to be able to make properties writeable, you must combine the object shape with stdclass (ref : https://github.com/phpstan/phpstan/discussions/10079) However, it is not supported