1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

Allow nullable arg

This commit is contained in:
Matthew Brown 2016-02-04 15:53:20 -05:00
parent fc5f4ae16d
commit c56ec0b911

View File

@ -148,7 +148,7 @@ class FileChecker implements StatementsSource
return !self::$_var_dump_fn || call_user_func(self::$_var_dump_fn, $file_name);
}
public static function shouldCheckClassProperties($file_name, ClassChecker $class_checker)
public static function shouldCheckClassProperties($file_name, ClassChecker $class_checker = null)
{
return !self::$_class_property_fn || call_user_func(self::$_class_property_fn, $file_name, $class_checker);
}