Skip to content

Commit 0eb35c3

Browse files
committed
Redeclare the getUser method in GetResponseNullableUserEvent
This allows it to have the proper return type. This class is actually violating variance rules. The v3 of the package will replace it with a class not extending the other event class.
1 parent aaf78e1 commit 0eb35c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Event/GetResponseNullableUserEvent.php

+8
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@ public function __construct(UserInterface $user = null, Request $request)
2929
$this->user = $user;
3030
$this->request = $request;
3131
}
32+
33+
/**
34+
* @return UserInterface|null
35+
*/
36+
public function getUser()
37+
{
38+
return $this->user;
39+
}
3240
}

0 commit comments

Comments
 (0)