Browse Source

Update Pest.php to use explicit nullable

Joan Miquel 1 năm trước cách đây
mục cha
commit
cf2baf32fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/Pest.php

+ 1 - 1
tests/Pest.php

@@ -42,7 +42,7 @@ function something()
     // ..
 }
 
-function testWithConnectionClose(Closure $closure, string $dataContains = null, $connectionClass = TcpConnection::class): void
+function testWithConnectionClose(Closure $closure, ?string $dataContains = null, $connectionClass = TcpConnection::class): void
 {
     $tcpConnection = Mockery::spy($connectionClass);
     $closure($tcpConnection);