mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-19 10:33:11 +00:00
Prevent generation of invalid code for certain parameter default values
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ class Method
|
|||||||
} elseif (is_resource($default)) {
|
} elseif (is_resource($default)) {
|
||||||
//skip to not fail
|
//skip to not fail
|
||||||
} else {
|
} else {
|
||||||
$default = "'" . trim($default) . "'";
|
$default = var_export($default, true);
|
||||||
}
|
}
|
||||||
$paramStr .= " = $default";
|
$paramStr .= " = $default";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user