Skip to content

Commit e5fe330

Browse files
committed
fix: Auto-Discover Null Path
1 parent acc1c7a commit e5fe330

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WebFiori/Http/WebServicesManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function addService(WebService $service) : WebServicesManager {
156156
*
157157
* @return WebServicesManager Returns the same instance for method chaining.
158158
*/
159-
public function autoDiscoverServices(string $path = null) : WebServicesManager {
159+
public function autoDiscoverServices(?string $path = null) : WebServicesManager {
160160
if ($path === null) {
161161
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
162162
$path = dirname($trace[0]['file']);

0 commit comments

Comments
 (0)