function Preg::isMatchStrictGroups
Variant of `isMatch()` which outputs non-null matches (or throws)
@param-out array<int|string, string> $matches
Parameters
non-empty-string $pattern:
array<mixed> $matches Set by method:
int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported:
Throws
37 calls to Preg::isMatchStrictGroups()
- ArchiveCommand::selectPackage in vendor/
composer/ composer/ src/ Composer/ Command/ ArchiveCommand.php - BinaryInstaller::determineBinaryCaller in vendor/
composer/ composer/ src/ Composer/ Installer/ BinaryInstaller.php - ClassMapGenerator::normalizePath in vendor/
composer/ class-map-generator/ src/ ClassMapGenerator.php - Normalize a path. This replaces backslashes with slashes, removes ending slash and collapses redundant separators and up-level references.
- ComposerRepository::search in vendor/
composer/ composer/ src/ Composer/ Repository/ ComposerRepository.php - @inheritDoc
- ConfigCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ ConfigCommand.php
File
-
vendor/
composer/ pcre/ src/ Preg.php, line 314
Class
Namespace
Composer\PcreCode
public static function isMatchStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0) : bool {
return (bool) self::matchStrictGroups($pattern, $subject, $matches, $flags, $offset);
}