@@ -17,7 +17,7 @@ trait Specify
1717 getCurrentSpecifyTest as public ;
1818 }
1919
20- public function specify (string $ thing , Closure $ code = null , $ examples = []): ?self
20+ public function specify (string $ thing , ? Closure $ code = null , $ examples = []): ?self
2121 {
2222 if ($ code instanceof Closure) {
2323 $ this ->runSpec ($ thing , $ code , $ examples );
@@ -27,7 +27,7 @@ public function specify(string $thing, Closure $code = null, $examples = []): ?s
2727 return $ this ;
2828 }
2929
30- public function describe (string $ feature , Closure $ code = null ): ?self
30+ public function describe (string $ feature , ? Closure $ code = null ): ?self
3131 {
3232 if ($ code instanceof Closure) {
3333 $ this ->runSpec ($ feature , $ code );
@@ -37,7 +37,7 @@ public function describe(string $feature, Closure $code = null): ?self
3737 return $ this ;
3838 }
3939
40- public function it (string $ specification , Closure $ code = null , $ examples = []): self
40+ public function it (string $ specification , ? Closure $ code = null , $ examples = []): self
4141 {
4242 if ($ code instanceof Closure) {
4343 $ this ->runSpec ($ specification , $ code , $ examples );
@@ -48,12 +48,12 @@ public function it(string $specification, Closure $code = null, $examples = []):
4848 return $ this ;
4949 }
5050
51- public function its (string $ specification , Closure $ code = null , $ examples = []): self
51+ public function its (string $ specification , ? Closure $ code = null , $ examples = []): self
5252 {
5353 return $ this ->it ($ specification , $ code , $ examples );
5454 }
5555
56- public function should (string $ behavior , Closure $ code = null , $ examples = []): self
56+ public function should (string $ behavior , ? Closure $ code = null , $ examples = []): self
5757 {
5858 if ($ code instanceof Closure) {
5959 $ this ->runSpec ('should ' . $ behavior , $ code , $ examples );
@@ -64,7 +64,7 @@ public function should(string $behavior, Closure $code = null, $examples = []):
6464 return $ this ;
6565 }
6666
67- public function shouldNot (string $ behavior , Closure $ code = null , $ examples = []): self
67+ public function shouldNot (string $ behavior , ? Closure $ code = null , $ examples = []): self
6868 {
6969 if ($ code instanceof Closure) {
7070 $ this ->runSpec ('should not ' . $ behavior , $ code , $ examples );
0 commit comments