This commit is contained in:
2021-04-19 15:21:17 +08:00
parent 38425b4d7e
commit f604f3cb08
+2 -2
View File
@@ -81,10 +81,10 @@ class Annotation extends Component
/**
* @param string $dir
* @param string|array|null $outPath
* @param string|array $outPath
* @throws Exception
*/
public function runtime(string $dir, string|array $outPath = null)
public function runtime(string $dir, string|array $outPath = [])
{
if (!empty($outPath) && !is_array($outPath)) {
$outPath = [$outPath];