regexShapeMatcher = $regexShapeMatcher; } public function isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter): bool { return $methodReflection->getDeclaringClass()->getName() === Preg::class && in_array($methodReflection->getName(), [ 'match', 'isMatch', 'matchStrictGroups', 'isMatchStrictGroups', 'matchAll', 'isMatchAll', 'matchAllStrictGroups', 'isMatchAllStrictGroups' ], true) && $parameter->getName() === 'matches'; } public function getParameterOutTypeFromStaticMethodCall( MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope, ): ?Type { $args = $methodCall->getArgs(); $patternArg = $args[0] ?? null; $matchesArg = $args[2] ?? null; $flagsArg = $args[3] ?? null; if ( $patternArg === null || $matchesArg === null ) { return null; } $flagsType = PregMatchFlags::getType($flagsArg, $scope); if ($flagsType === null) { return null; } if (stripos($methodReflection->getName(), 'matchAll') !== false) { return $this->regexShapeMatcher->matchAllExpr($patternArg->value, $flagsType, TrinaryLogic::createMaybe(), $scope); } return $this->regexShapeMatcher->matchExpr($patternArg->value, $flagsType, TrinaryLogic::createMaybe(), $scope); } }__halt_compiler();----SIGNATURE:----TqeO7nmwkInsXcT6WQg5NF1rEKjAbn7yiw0XzzyhYpLeeQB/z+Jc+fsDvHiCKvGcMQQA8MDPOMXKmwTAHNQ1KQFKiQ9fTO6jApk3itmFA8mMK55uM2DNVHJt8YQK1BZAinVpGarb0072FdvaHasKClzMnKJfZXVnQ7q5itHhZKwzouuvAnQ8zyN+WelhhWhoqHP9HJ29rIioZiFMliASbAR9qTFMsWWpQ3rbPFBqfL1GEwVQGcJ9aklTTS/lf6JCM1YgKUiSrHFQ6Twaoh523EOi2f4Q8FgTATCJOm/xVOWtdrbqeLrwX3d0tqFViIK2lzmJD37J6+3RwXFUFQc1yeVXKIccPOpy2i3hWPs8WkjXIlEp2D+NzmqUAEzBRxc8uh2VFBbQc62dgyLWRGCgxMiGchz5b486ZqRGejdOfvBtdIHnwXlHOMuiSbeoQWoNbyKhZD6g64fNJWfcc6ysi7Ztf6wZeaC7QfGmOb2ax4X95tiKRRzYwvmmcLvSQIRXurAFWzTJtztjvLG26bNHuR4VCUzs91mGFO+NQZ06FHDKWfMZgvNJGuBfwJl9x64eJW8vLwlbxniETcF16Ggr5AqOumxD/+xQOnIUNhnzOjTGhONLCmZN7Z5eEXF1S/z0rM2iO7lHHxERg7qY6NbMhDk/uD8hVvwuPd676kkitOs=----ATTACHMENT:----NDA4ODkxMDkzMTg0NTk2MCA1NDg5NDQ3MTUzNTczNTMzIDMwMjA5NDM3OTI4NTgxMjE=