Documentation

InvalidRegexPatternRule
in package
implements Rule

Copy of PHPStan's RegularExpressionPatternRule

Tags
implements

Table of Contents

Interfaces

Rule

Methods

getNodeType()  : string
processNode()  : array<string|int, mixed>
extractPatterns()  : array<string|int, string>
validatePattern()  : string|null

Methods

processNode()

public processNode(Node $node, Scope $scope) : array<string|int, mixed>
Parameters
$node : Node
$scope : Scope
Return values
array<string|int, mixed>

validatePattern()

private validatePattern(string $pattern) : string|null
Parameters
$pattern : string
Return values
string|null

        
On this page

Search results