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

Breadcrumb

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

function PhpVersion::equals

Check whether two versions are the same.

1 call to PhpVersion::equals()
PhpVersion::isHostVersion in vendor/nikic/php-parser/lib/PhpParser/PhpVersion.php
Check whether this is the host PHP version.

File

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

Class

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

Namespace

PhpParser

Code

public function equals(PhpVersion $other) : bool {
    return $this->id === $other->id;
}

API Navigation

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