original_string: public static function isType($value, ?string $type): bool
      {
          if ($type === null) {
              return true;
          }
  
          $result = self::isSimpleType($value, $type);
  
          if ($result !== null) {
              return $result;
          }
  
          return ($value instanceof $type);
      }
code: public static function isType($value, ?string $type): bool
      {
          if ($type === null) {
              return true;
          }
  
          $result = self::isSimpleType($value, $type);
  
          if ($result !== null) {
              return $result;
          }
  
          return ($value instanceof $type);
      }
code_tokens: public static function isType ( $ value , ? string $ type ) : bool { if ( $ type === null ) { return true ; } $ result = self :: isSimpleType ( $ value , $ type ) ; if ( $ result !== null ) { return $ result ; } return ( $ value instanceof $ type ) ; }
docstring: Checks if value is a given type
  
  The type can be any fully-qualified class or interface name,
  or one of the following type strings:
  [array, object, bool, int, float, string, callable]
  
  @param mixed       $value The value
  @param string|null $type  The type or null to accept all types
  
  @return bool
docstring_tokens: Checks if value is a given type