Skip to content

Commit 7da7829

Browse files
committed
Psalm fixes
1 parent 5595a42 commit 7da7829

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

lib/GenericLoop.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
/**
1414
* Generic loop, runs single callable.
1515
*
16+
* @api
17+
*
1618
* @author Daniil Gentili <daniil@daniil.it>
1719
*/
1820
class GenericLoop extends Loop

lib/Loop.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
/**
1919
* Generic loop, runs single callable.
2020
*
21+
* @api
22+
*
2123
* @author Daniil Gentili <daniil@daniil.it>
2224
*/
2325
abstract class Loop implements Stringable
@@ -54,6 +56,8 @@ abstract class Loop implements Stringable
5456
/**
5557
* Report pause, can be overriden for logging.
5658
*
59+
* @psalm-suppress PossiblyUnusedParam
60+
*
5761
* @param float $timeout Pause duration, 0 = forever
5862
*/
5963
protected function reportPause(float $timeout): void

lib/PeriodicLoop.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
/**
1313
* Periodic loop.
1414
*
15+
* @api
16+
*
1517
* @author Daniil Gentili <daniil@daniil.it>
1618
*/
1719
class PeriodicLoop extends GenericLoop

psalm-baseline.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<files psalm-version="dev-master@9725dafb7e0e0693cd8eee14d83d48db2cef39cd">
3-
<file src="lib/Generic/GenericLoop.php">
4-
<DocblockTypeContradiction>
5-
<code>$callable instanceof \Closure</code>
6-
</DocblockTypeContradiction>
7-
<MixedPropertyTypeCoercion>
8-
<code>$callable</code>
9-
</MixedPropertyTypeCoercion>
10-
</file>
11-
<file src="lib/Generic/PeriodicLoop.php">
12-
<DocblockTypeContradiction>
13-
<code>$callback instanceof \Closure</code>
14-
</DocblockTypeContradiction>
15-
<MixedPropertyTypeCoercion>
16-
<code>$callback</code>
17-
</MixedPropertyTypeCoercion>
18-
</file>
193
</files>

0 commit comments

Comments
 (0)