Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/VCR/Storage/AbstractStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct(string $cassettePath, string $cassetteName, string $
*
* @return array<string,mixed>|null parsed current record
*/
public function current()
public function current(): mixed
{
return $this->current;
}
Expand Down
5 changes: 2 additions & 3 deletions src/VCR/Storage/Blackhole.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ public function key(): int
throw new \BadMethodCallException('Not implemented');
}

/** @return array<mixed>|null */
public function next(): ?array
/** @return void */
public function next(): void
{
return null;
}

public function rewind(): void
Expand Down
2 changes: 1 addition & 1 deletion src/VCR/Storage/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function rewind(): void
$this->position = 0;
}

public function valid()
public function valid(): bool
{
if (null === $this->current) {
$this->next();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Storage/AbstractStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function next(): void
{
}

public function valid()
public function valid(): bool
{
return (bool) $this->position;
}
Expand Down