You are here

public function Kint_Objects_Closure::isDefaultValueAvailable in Devel 8

Same name and namespace in other branches
  1. 8.2 kint/kint/parsers/objects/closure.php \Kint_Objects_Closure::isDefaultValueAvailable()

File

kint/kint/parsers/objects/closure.php, line 35

Class

Kint_Objects_Closure

Code

public function isDefaultValueAvailable() {
  if (PHP_VERSION_ID === 50316) {

    // PHP bug #62988
    try {
      $this
        ->getDefaultValue();
      return true;
    } catch (\ReflectionException $e) {
      return false;
    }
  }
  return parent::isDefaultValueAvailable();
}