Skip to content

Commit 1304c99

Browse files
fix: ensure uri_mask is returned correctly from configuration (#31)
1 parent df17132 commit 1304c99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Middleware/TraceMiddleware.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ protected function getPath(ServerRequestInterface $request): string
170170

171171
protected function getUriMask(): array
172172
{
173-
return is_array($this->config['uri_mask'])? $this->config['uri_mask'] : [];
173+
if(
174+
array_key_exists('uri_mask', $this->config) &&
175+
is_array($this->config['uri_mask'])
176+
) {
177+
return $this->config['uri_mask'];
178+
}
179+
180+
return [];
174181
}
175182
}

0 commit comments

Comments
 (0)