From 0943bfa5df54e8e909e9fd9fb91e0b0624c51fb6 Mon Sep 17 00:00:00 2001 From: Sergei Churilo Date: Thu, 16 Dec 2021 13:31:20 +0300 Subject: [PATCH] Fix "Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated" in TerminusModel.php --- src/Models/TerminusModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/TerminusModel.php b/src/Models/TerminusModel.php index 9e5f80365..39b899bc0 100644 --- a/src/Models/TerminusModel.php +++ b/src/Models/TerminusModel.php @@ -106,7 +106,7 @@ public function getReferences() */ public function getUrl() { - return str_replace('{id}', $this->id, $this->url); + return $this->id ? str_replace('{id}', $this->id, $this->url) : $this->url; } /**