mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Allow nullable arg
This commit is contained in:
parent
fc5f4ae16d
commit
c56ec0b911
@ -148,7 +148,7 @@ class FileChecker implements StatementsSource
|
|||||||
return !self::$_var_dump_fn || call_user_func(self::$_var_dump_fn, $file_name);
|
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);
|
return !self::$_class_property_fn || call_user_func(self::$_class_property_fn, $file_name, $class_checker);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user