mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Support dollars
This commit is contained in:
parent
55005cdf23
commit
d8e11c7ad7
@ -19,7 +19,7 @@ abstract class Type
|
||||
public static function parseString($type_string)
|
||||
{
|
||||
// remove all unacceptable characters
|
||||
$type_string = preg_replace('/[^A-Za-z0-9_\\\\|\? \<\>\{\}:,\]\[\(\)]/', '', trim($type_string));
|
||||
$type_string = preg_replace('/[^A-Za-z0-9_\\\\|\? \<\>\{\}:,\]\[\(\)\$]/', '', trim($type_string));
|
||||
|
||||
if (strpos($type_string, '[') !== false) {
|
||||
$type_string = self::convertSquareBrackets($type_string);
|
||||
|
Loading…
x
Reference in New Issue
Block a user