From defc4c8d9bc5ea30eb51654cb41f5d7df38b6db6 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sun, 2 Jun 2024 12:14:43 +0900 Subject: [PATCH] fixup! Refactor XmlConfigLoad.php to improve readability --- src/XmlConfigLoad.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XmlConfigLoad.php b/src/XmlConfigLoad.php index b25c214..399be18 100644 --- a/src/XmlConfigLoad.php +++ b/src/XmlConfigLoad.php @@ -44,7 +44,7 @@ public function locateConfigFile(string $path): string } $dirPath = realpath($path) ?: getcwd(); - assert(is_dir($dirPath)); + assert(is_dir((string) $dirPath)); do { $maybePath = sprintf('%s/%s', $dirPath, $this->configName);