Are you sure the assignment to $matches is correct as $this->extract($value) targeting Knp\DictionaryBundle\Val...mer\Constant::extract() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
Are you sure the assignment to $matches is correct as $this->extract($value) targeting Knp\DictionaryBundle\Val...mer\Constant::extract() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
The doc comment ?array{class: class-string, constant: string} at position 4 could not be parsed: Unknown type name 'class-string' at position 4 in ?array{class: class-string, constant: string}.
Loading history...
51
*/
52
private function extract(string $value): ?array
53
{
54
if (preg_match(self::PATTERN, $value, $matches)) {