Skip to content

Commit fafcfd9

Browse files
authored
Merge pull request #4 from digifa/2.3.2.2
v2.3.2.2
2 parents 6936342 + 7c3e44e commit fafcfd9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/DataCollector/DeviceDataCollector.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function collect(
8686
/**
8787
* Get the current view being displayed.
8888
*/
89-
public function getCurrentView(): string
89+
public function getCurrentView(): ?string
9090
{
9191
return $this->data['currentView'];
9292
}
@@ -102,9 +102,11 @@ public function getViews(): array
102102
/**
103103
* Sets the redirect configuration.
104104
*/
105-
public function setRedirectConfig(array $redirectConfig): void
105+
public function setRedirectConfig(array $redirectConfig): self
106106
{
107107
$this->redirectConfig = $redirectConfig;
108+
109+
return $this;
108110
}
109111

110112
/**

src/DataCollector/DeviceDataCollectorInterface.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public function __wakeup();
2828
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void;
2929

3030
/**
31-
* Returns the current view name as a string.
31+
* Returns the current view name as a string or null.
3232
*/
33-
public function getCurrentView(): string;
33+
public function getCurrentView(): ?string;
3434

3535
/**
3636
* Returns an array of views associated with this object.
@@ -40,7 +40,7 @@ public function getViews(): array;
4040
/**
4141
* Sets the redirect configuration for the Symfony application.
4242
*/
43-
public function setRedirectConfig(array $redirectConfig): void;
43+
public function setRedirectConfig(array $redirectConfig): self;
4444

4545
/**
4646
* Gets the name of the Symfony application.

0 commit comments

Comments
 (0)