We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0f4f2f commit 82efa20Copy full SHA for 82efa20
src/functions.php
@@ -12,6 +12,7 @@
12
function getLoop(): object
13
{
14
static $loop = null;
15
+
16
if ($loop === null) {
17
$loop = Loop::get();
18
}
tests/AsyncAwaitTest.php
@@ -1,5 +1,7 @@
1
<?php
2
3
+declare(strict_types=1);
4
5
it('supports chaining then and catch syntax', function () {
6
$func = async(fn () => 'Success');
7
@@ -25,7 +27,7 @@ function (mixed $value) use (&$result) {
25
27
26
28
expect($result)->toBe('Success');
29
} catch (\Throwable $th) {
- $this->fail('Await threw an unexpected exception: '.$th->getMessage());
30
+ $this->fail('Await threw an unexpected exception: ' . $th->getMessage());
31
32
});
33
0 commit comments