Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit 1c06a7f

Browse files
committed
PHPStan level 9
1 parent 7f06448 commit 1c06a7f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
22
stubFiles:
33
- tests/phpstan/stubs/pthreads.stub
4-
level: 8
4+
level: 9
55
paths:
66
- src

src/BaseClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function appendOrPrependLookupEntry(\Threaded $list, string $entry, bo
6868
}
6969

7070
/**
71-
* @return string[]
71+
* @return mixed[]
7272
*/
7373
protected function getAndRemoveLookupEntries(\Threaded $list) : array{
7474
$entries = [];

tests/phpstan/stubs/pthreads.stub

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
/**
44
* @implements \Traversable<array-key, mixed>
55
*/
6-
class Threaded implements \Traversable{}
6+
class Threaded implements \Traversable{
7+
8+
/**
9+
* @template TReturn
10+
* @param callable() : TReturn $function
11+
* @param mixed ...$args
12+
* @return TReturn
13+
*/
14+
public function synchronized(callable $function, ...$args){}
15+
}

0 commit comments

Comments
 (0)