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

Breadcrumb

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

function Preg::checkOffsetCapture

2 calls to Preg::checkOffsetCapture()
Preg::match in vendor/composer/pcre/src/Preg.php
@param-out array<int|string, string|null> $matches
Preg::matchAll in vendor/composer/pcre/src/Preg.php
@param-out array<int|string, list<string|null>> $matches

File

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

Class

Preg

Namespace

Composer\Pcre

Code

private static function checkOffsetCapture(int $flags, string $useFunctionName) : void {
    if (($flags & PREG_OFFSET_CAPTURE) !== 0) {
        throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the type of $matches, use ' . $useFunctionName . '() instead');
    }
}
RSS feed
Powered by Drupal