InvalidRegexPatternRule
in package
implements
Rule
Copy of PHPStan's RegularExpressionPatternRule
Tags
Table of Contents
Interfaces
- Rule
Methods
- getNodeType() : string
- processNode() : array<string|int, mixed>
- extractPatterns() : array<string|int, string>
- validatePattern() : string|null
Methods
getNodeType()
public
getNodeType() : string
Return values
stringprocessNode()
public
processNode(Node $node, Scope $scope) : array<string|int, mixed>
Parameters
- $node : Node
- $scope : Scope
Return values
array<string|int, mixed>extractPatterns()
private
extractPatterns(StaticCall $node, Scope $scope) : array<string|int, string>
Parameters
- $node : StaticCall
- $scope : Scope
Return values
array<string|int, string>validatePattern()
private
validatePattern(string $pattern) : string|null
Parameters
- $pattern : string