Skip to content

Commit

Permalink
Prevent a deprecation notice when checking the version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed May 20, 2024
1 parent f868375 commit 2c25a52
Showing 1 changed file with 2 additions and 1 deletion.
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(),
];
}
}
}

0 comments on commit 2c25a52

Please sign in to comment.