@@ -58,7 +58,7 @@ protected function instance($abstract, $instance)
5858 * @param string $abstract
5959 * @return \Mockery\MockInterface
6060 */
61- protected function mock ($ abstract , Closure $ mock = null )
61+ protected function mock ($ abstract , ? Closure $ mock = null )
6262 {
6363 return $ this ->instance ($ abstract , Mockery::mock (...array_filter (func_get_args ())));
6464 }
@@ -69,7 +69,7 @@ protected function mock($abstract, Closure $mock = null)
6969 * @param string $abstract
7070 * @return \Mockery\MockInterface
7171 */
72- protected function partialMock ($ abstract , Closure $ mock = null )
72+ protected function partialMock ($ abstract , ? Closure $ mock = null )
7373 {
7474 return $ this ->instance ($ abstract , Mockery::mock (...array_filter (func_get_args ()))->makePartial ());
7575 }
@@ -80,7 +80,7 @@ protected function partialMock($abstract, Closure $mock = null)
8080 * @param string $abstract
8181 * @return \Mockery\MockInterface
8282 */
83- protected function spy ($ abstract , Closure $ mock = null )
83+ protected function spy ($ abstract , ? Closure $ mock = null )
8484 {
8585 return $ this ->instance ($ abstract , Mockery::spy (...array_filter (func_get_args ())));
8686 }
0 commit comments