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

Breadcrumb

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

function Preg::checkSetOrder

2 calls to Preg::checkSetOrder()
Preg::matchAll in vendor/composer/pcre/src/Preg.php
@param-out array<int|string, list<string|null>> $matches
Preg::matchAllWithOffsets in vendor/composer/pcre/src/Preg.php
Runs preg_match_all with PREG_OFFSET_CAPTURE

File

vendor/composer/pcre/src/Preg.php, line 386

Class

Preg

Namespace

Composer\Pcre

Code

private static function checkSetOrder(int $flags) : void {
    if (($flags & PREG_SET_ORDER) !== 0) {
        throw new \InvalidArgumentException('PREG_SET_ORDER is not supported as it changes the type of $matches');
    }
}
RSS feed
Powered by Drupal