Skip to content

Commit

Permalink
Resolve errors flagged by PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
test committed Apr 25, 2024
1 parent 1032be0 commit 02ffd40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/VersionFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ public function getRegex(): string {
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return [
'file' => $this->getPath(),
'regex' => $this->getRegex(),
];
}
}
}
6 changes: 5 additions & 1 deletion src/Workflow/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function current() {
}

/**
* @inheritDoc
* Grabs a workflow from the collection.
*
* @param string $offset Workflow slug.
*
* @return Workflow|null
*/
#[\ReturnTypeWillChange]
public function get( $offset ) {
Expand Down

0 comments on commit 02ffd40

Please sign in to comment.