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

Breadcrumb

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

function PhpVersion::supportsShortArraySyntax

Whether this version supports [] array literals.

File

vendor/nikic/php-parser/lib/PhpParser/PhpVersion.php, line 105

Class

PhpVersion
A PHP version, representing only the major and minor version components.

Namespace

PhpParser

Code

public function supportsShortArraySyntax() : bool {
    return $this->id >= 50400;
}

API Navigation

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