From 0f94291523797f41d90407920d738a8614612a23 Mon Sep 17 00:00:00 2001 From: Basil Suter Date: Thu, 9 Mar 2023 10:17:52 +0000 Subject: [PATCH 1/2] php 8.1 ensure string --- src/LinkConverter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LinkConverter.php b/src/LinkConverter.php index 00d24fcb..37f84535 100644 --- a/src/LinkConverter.php +++ b/src/LinkConverter.php @@ -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])); } /** @@ -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]); } /** From 16fab386ce4f74798092fe321df4728580018339 Mon Sep 17 00:00:00 2001 From: Basil Suter Date: Thu, 9 Mar 2023 10:43:32 +0000 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb7ffdb8..57f29359 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.