Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThrowablePatch.php

function ThrowablePatch::doesNotExtendAThrowableClass

Parameters

ClassNode $node:

Return value

bool

1 call to ThrowablePatch::doesNotExtendAThrowableClass()
ThrowablePatch::supports in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php
Checks if patch supports specific class node.

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php, line 40

Class

ThrowablePatch

Namespace

Prophecy\Doubler\ClassPatch

Code

private function doesNotExtendAThrowableClass(ClassNode $node) {
    return !is_a($node->getParentClass(), 'Throwable', true);
}
RSS feed
Powered by Drupal