Skip to content

Commit

Permalink
refactor: PHP 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Dec 22, 2023
1 parent 3431f68 commit 116b283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,8 @@ public function getCacheAssetsRemotePath(): string
* Returns the property value of an output format.
*
* @throws RuntimeException
*
* @return string|array|null
*/
public function getOutputFormatProperty(string $name, string $property)
public function getOutputFormatProperty(string $name, string $property): string|array|null
{
$properties = array_column((array) $this->get('output.formats'), $property, 'name');

Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function getPagesIntl(): \Cecil\Collection\Page\Collection
}

/**
* Return current time.
* Returns current time.
*/
public function getTime(): int
{
Expand Down

0 comments on commit 116b283

Please sign in to comment.