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

Breadcrumb

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

function ParserAbstract::getFloatCastKind

File

vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php, line 726

Class

ParserAbstract

Namespace

PhpParser

Code

protected function getFloatCastKind(string $cast) : int {
    $cast = strtolower($cast);
    if (strpos($cast, 'float') !== false) {
        return Double::KIND_FLOAT;
    }
    if (strpos($cast, 'real') !== false) {
        return Double::KIND_REAL;
    }
    return Double::KIND_DOUBLE;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal