1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Support dollars

This commit is contained in:
Matthew Brown 2016-11-21 10:29:59 -05:00
parent 55005cdf23
commit d8e11c7ad7

View File

@ -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);