@@ -17,7 +17,7 @@ trait Specify
17
17
getCurrentSpecifyTest as public ;
18
18
}
19
19
20
- public function specify (string $ thing , Closure $ code = null , $ examples = []): ?self
20
+ public function specify (string $ thing , ? Closure $ code = null , $ examples = []): ?self
21
21
{
22
22
if ($ code instanceof Closure) {
23
23
$ this ->runSpec ($ thing , $ code , $ examples );
@@ -27,7 +27,7 @@ public function specify(string $thing, Closure $code = null, $examples = []): ?s
27
27
return $ this ;
28
28
}
29
29
30
- public function describe (string $ feature , Closure $ code = null ): ?self
30
+ public function describe (string $ feature , ? Closure $ code = null ): ?self
31
31
{
32
32
if ($ code instanceof Closure) {
33
33
$ this ->runSpec ($ feature , $ code );
@@ -37,7 +37,7 @@ public function describe(string $feature, Closure $code = null): ?self
37
37
return $ this ;
38
38
}
39
39
40
- public function it (string $ specification , Closure $ code = null , $ examples = []): self
40
+ public function it (string $ specification , ? Closure $ code = null , $ examples = []): self
41
41
{
42
42
if ($ code instanceof Closure) {
43
43
$ this ->runSpec ($ specification , $ code , $ examples );
@@ -48,12 +48,12 @@ public function it(string $specification, Closure $code = null, $examples = []):
48
48
return $ this ;
49
49
}
50
50
51
- public function its (string $ specification , Closure $ code = null , $ examples = []): self
51
+ public function its (string $ specification , ? Closure $ code = null , $ examples = []): self
52
52
{
53
53
return $ this ->it ($ specification , $ code , $ examples );
54
54
}
55
55
56
- public function should (string $ behavior , Closure $ code = null , $ examples = []): self
56
+ public function should (string $ behavior , ? Closure $ code = null , $ examples = []): self
57
57
{
58
58
if ($ code instanceof Closure) {
59
59
$ this ->runSpec ('should ' . $ behavior , $ code , $ examples );
@@ -64,7 +64,7 @@ public function should(string $behavior, Closure $code = null, $examples = []):
64
64
return $ this ;
65
65
}
66
66
67
- public function shouldNot (string $ behavior , Closure $ code = null , $ examples = []): self
67
+ public function shouldNot (string $ behavior , ? Closure $ code = null , $ examples = []): self
68
68
{
69
69
if ($ code instanceof Closure) {
70
70
$ this ->runSpec ('should not ' . $ behavior , $ code , $ examples );
0 commit comments