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

Breadcrumb

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

function Emulative::sortPatches

1 call to Emulative::sortPatches()
Emulative::tokenize in vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php
Tokenize the provided source code.

File

vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php, line 113

Class

Emulative

Namespace

PhpParser\Lexer

Code

private function sortPatches() : void {
    // Patches may be contributed by different emulators.
    // Make sure they are sorted by increasing patch position.
    usort($this->patches, function ($p1, $p2) {
        return $p1[0] <=> $p2[0];
    });
}

API Navigation

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