Adjusted inline docs for Psalm to pass

This commit is contained in:
Andrey Savchenko committed 2022-02-08 14:38:17 +02:00
1 parent 321cdce5e2
commit 09b7a76bd6
3 files changed
+6 -3

No files matched your search

-1
View File
@@ -78,7 +78,6 @@ class Hook_Collector extends Stopwatch_Collector {
/**
* @var int|string $key
* @var array $data
* @psalm-var array{0:string} $data
*/
foreach ( $stops as $key => $data ) {
@@ -7,6 +7,9 @@ use Rarst\Laps\Record\Record_Interface;
/**
* Processes records, recursively bumping overlapping ones to children.
*
* @template-extends \ArrayIterator<array-key,Record_Interface>
* @template-implements \RecursiveIterator<array-key,Record_Interface>
*/
class Recursive_Record_Iterator extends \ArrayIterator implements \RecursiveIterator {
@@ -15,7 +18,7 @@ class Recursive_Record_Iterator extends \ArrayIterator implements \RecursiveIter
/**
* @param Record_Interface[] $records Records to process.
* @param int $flags Configuration flags.
* @psalm-param 0|1|2|3 $flags Configuration flags.
*/
public function __construct( array $records, int $flags = 0 ) {
+2 -1
View File
@@ -5,11 +5,12 @@ namespace Rarst\Laps\Record\Iterator;
use Rarst\Laps\Record\Record;
use Rarst\Laps\Record\Record_Interface;
use Rarst\Laps\Record\Iterator\Recursive_Record_Iterator;
/**
* Processes records into sets for display by template.
*
* @template-implements \Iterator<array>
*
* @psalm-suppress PropertyNotSetInConstructor
*/
class Timeline_Iterator implements \Iterator {