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

Breadcrumb

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

function Regex::checkSetOrder

3 calls to Regex::checkSetOrder()
Regex::matchAll in vendor/composer/pcre/src/Regex.php
Regex::matchAllStrictGroups in vendor/composer/pcre/src/Regex.php
Variant of `matchAll()` which returns non-null matches (or throws)
Regex::matchAllWithOffsets in vendor/composer/pcre/src/Regex.php
Runs preg_match_all with PREG_OFFSET_CAPTURE

File

vendor/composer/pcre/src/Regex.php, line 170

Class

Regex

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 return type');
    }
}
RSS feed
Powered by Drupal