Skip to content

Commit e10478c

Browse files
committed
Fixed default timeout type
1 parent c185376 commit e10478c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
- '#Default value of the parameter \#3 $timeout \(60\) of method WyriHaximus\AsyncTestUtilities\AsyncTestCase::await\(\) is incompatible with type float\|null.#'
43
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) has parameter \$[a-zA-Z0-9_]+ with a nullable type declaration.#'
54
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) has parameter \$[a-zA-Z0-9_]+ with null as default value.#'
65
classesAllowedToBeExtended:

src/AsyncTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
abstract class AsyncTestCase extends TestCase
1414
{
15-
const DEFAULT_AWAIT_TIMEOUT = 60;
15+
public const DEFAULT_AWAIT_TIMEOUT = 60.0;
1616

1717
/**
1818
* @param PromiseInterface $promise

0 commit comments

Comments
 (0)