From 01db4aec50cd035d9ef76797a3fe7b3bdef8d6cd Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 2 Dec 2024 17:25:01 +0000 Subject: [PATCH] handle xml parser returning false or null --- generator/src/Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/Method.php b/generator/src/Method.php index 3e610500..29f57a62 100644 --- a/generator/src/Method.php +++ b/generator/src/Method.php @@ -177,7 +177,7 @@ private function removeString(string $string, string $search): string private function getStringForXPath(string $xpath): string { $paragraphs = $this->rootEntity->xpath($xpath); - if ($paragraphs === false) { + if (!$paragraphs) { throw new \RuntimeException('Error while performing Xpath request.'); } $str = '';