function ThrowablePatch::checkItCanBeDoubled
1 call to ThrowablePatch::checkItCanBeDoubled()
- ThrowablePatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ThrowablePatch.php - Applies patch to the specific class node.
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ThrowablePatch.php, line 58
Class
Namespace
Prophecy\Doubler\ClassPatchCode
private function checkItCanBeDoubled(ClassNode $node) : void {
$className = $node->getParentClass();
if ($className !== 'stdClass') {
throw new ClassCreatorException(sprintf('Cannot double concrete class %s as well as implement Traversable', $className), $node);
}
}