File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ public static function dump($var)
33
33
};
34
34
}
35
35
36
- return call_user_func (self ::$ handler , $ h );
36
+ return call_user_func (self ::$ handler , $ var );
37
37
}
38
38
39
39
public static function setHandler ($ callable )
40
40
{
41
- if (!is_callable ($ callable , true )) {
41
+ if (null !== $ callable && !is_callable ($ callable , true )) {
42
42
throw new \InvalidArgumentException ('Invalid PHP callback. ' );
43
43
}
44
44
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/4.1/phpunit.xsd"
5
+ backupGlobals =" false"
6
+ colors =" true"
7
+ bootstrap =" vendor/autoload.php"
8
+ >
9
+
10
+ <testsuites >
11
+ <testsuite name =" Symfony VarDumper Component Test Suite" >
12
+ <directory >./Tests/</directory >
13
+ </testsuite >
14
+ </testsuites >
15
+
16
+ <filter >
17
+ <whitelist >
18
+ <directory >./</directory >
19
+ <exclude >
20
+ <directory >./Tests</directory >
21
+ <directory >./Resources</directory >
22
+ <directory >./vendor</directory >
23
+ </exclude >
24
+ </whitelist >
25
+ </filter >
26
+ </phpunit >
You can’t perform that action at this time.
0 commit comments