Fix null deprecation warning

This commit is contained in:
Bradley Schofield 2025-01-22 16:02:56 +09:00
parent 5123cf5f8e
commit df491f6f46

View file

@ -89,7 +89,7 @@ class Method
$descPath = $this->getDescriptionFilePath();
if (!\file_exists($descPath)) {
if (empty($descPath)) {
self::$errors[] = "Error with {$this->getRouteName()} method: Description file not found at {$desc}";
return;
}