Skip to content

Commit

Permalink
Merge pull request #399 from luyadev/php81-string
Browse files Browse the repository at this point in the history
php 8.1 ensure string
  • Loading branch information
nadar authored Mar 16, 2023
2 parents 9965435 + 16fab38 commit 7d69539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/).
In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md).

## 4.5.3

+ [#399](https://github.com/luyadev/luya-module-cms/pull/399) php 8.1 compatibility issues

## 4.5.2 (18. January 2022)

+ [#396](https://github.com/luyadev/luya-module-cms/pull/396) Fixed bug where it was not possible to select a website when creating or updating a nav container.
Expand Down
4 changes: 2 additions & 2 deletions src/LinkConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function fromArray(array $configuration)
return false;
}

return (new self(['type' => $type, 'value' => $value, 'target' => $target]));
return (new self(['type' => $type, 'value' => (string) $value, 'target' => $target]));
}

/**
Expand Down Expand Up @@ -158,7 +158,7 @@ public function getLink()
*/
public function getWebsiteLink($href, $target)
{
return new WebsiteLink(['href' => $href, 'target' => $target]);
return new WebsiteLink(['href' => (string) $href, 'target' => $target]);
}

/**
Expand Down

0 comments on commit 7d69539

Please sign in to comment.