From 8944e1db144bd9a7e14d49b1d922e8640ad69d46 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 15 Apr 2025 12:04:29 +0000 Subject: [PATCH] chore: update null check for sdk descriptions --- src/Appwrite/Specification/Format/OpenAPI3.php | 2 +- src/Appwrite/Specification/Format/Swagger2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/Specification/Format/OpenAPI3.php index e60d342b0b..157ccc8263 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/Specification/Format/OpenAPI3.php @@ -177,7 +177,7 @@ class OpenAPI3 extends Format $namespace = $sdk->getNamespace() ?? 'default'; - $desc = $desc ?? ''; + $desc ??= ''; $descContents = \str_ends_with($desc, '.md') ? \file_get_contents($desc) : $desc; $temp = [ diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index fae164f0a6..b6536df9df 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -173,7 +173,7 @@ class Swagger2 extends Format $namespace = $sdk->getNamespace() ?? 'default'; - $desc = $desc ?? ''; + $desc ??= ''; $descContents = \str_ends_with($desc, '.md') ? \file_get_contents($desc) : $desc; $temp = [