From fc29da7eea3ce81ec689d95b70213195e8ccd5d8 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 26 Jun 2024 11:43:56 +0200 Subject: [PATCH] Prevent return type bug Reported by psalm upon pushing Signed-off-by: Christian Wolf --- lib/Service/JsonService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/JsonService.php b/lib/Service/JsonService.php index 25a0efa1..058a1a25 100644 --- a/lib/Service/JsonService.php +++ b/lib/Service/JsonService.php @@ -71,7 +71,7 @@ class JsonService { * @return bool true, if the schema matches that of a schema.org object */ public function isSchemaContext(string $context): bool { - return preg_match('@^https?://schema\.org/?$@', $context); + return preg_match('@^https?://schema\.org/?$@', $context) == 1; } /**