@@ -31,6 +31,7 @@ public function testCollectLegacy(): void {
3131
3232use Cake\Event\EventInterface;
3333use Cake\Http\Response;
34+ use Psr\Http\Message\UriInterface;
3435
3536if (false) {
3637 class Controller {
@@ -76,12 +77,12 @@ public function shutdown(EventInterface $event) {
7677
7778 /**
7879 * @param \Cake\Event\EventInterface $event
79- * @param array|string $url
80+ * @param \Psr\Http\Message\UriInterface| array|string $url
8081 * @param \Cake\Http\Response $response
8182 *
8283 * @return void
8384 */
84- public function beforeRedirect(EventInterface $event, $url, Response $response) {
85+ public function beforeRedirect(EventInterface $event, UriInterface|array|string $url, Response $response) {
8586 }
8687 }
8788
@@ -128,12 +129,12 @@ public function shutdown(EventInterface $event) {
128129
129130 /**
130131 * @param \Cake\Event\EventInterface $event
131- * @param array|string $url
132+ * @param \Psr\Http\Message\UriInterface| array|string $url
132133 * @param \Cake\Http\Response $response
133134 *
134135 * @return void
135136 */
136- public function beforeRedirect(EventInterface $event, $url, Response $response) {
137+ public function beforeRedirect(EventInterface $event, UriInterface|array|string $url, Response $response) {
137138 }
138139 }
139140}
@@ -154,6 +155,7 @@ public function testCollect() {
154155
155156use Cake\Event\EventInterface;
156157use Cake\Http\Response;
158+ use Psr\Http\Message\UriInterface;
157159
158160if (false) {
159161 class Controller {
@@ -174,12 +176,12 @@ public function shutdown(EventInterface $event): void {
174176
175177 /**
176178 * @param \Cake\Event\EventInterface $event
177- * @param array|string $url
179+ * @param \Psr\Http\Message\UriInterface| array|string $url
178180 * @param \Cake\Http\Response $response
179181 *
180182 * @return void
181183 */
182- public function beforeRedirect(EventInterface $event, $url, Response $response): void {
184+ public function beforeRedirect(EventInterface $event, UriInterface|array|string $url, Response $response): void {
183185 }
184186 }
185187
@@ -201,12 +203,12 @@ public function shutdown(EventInterface $event): void {
201203
202204 /**
203205 * @param \Cake\Event\EventInterface $event
204- * @param array|string $url
206+ * @param \Psr\Http\Message\UriInterface| array|string $url
205207 * @param \Cake\Http\Response $response
206208 *
207209 * @return void
208210 */
209- public function beforeRedirect(EventInterface $event, $url, Response $response): void {
211+ public function beforeRedirect(EventInterface $event, UriInterface|array|string $url, Response $response): void {
210212 }
211213 }
212214}
0 commit comments