Skip to content

Commit e4aff28

Browse files
authored
Deprecate setArgument[s]? (#3383)
1 parent ad56812 commit e4aff28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Slim/Interfaces/RouteInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,17 @@ public function getArguments(): array;
8989

9090
/**
9191
* Set a route argument
92+
*
93+
* @deprecated 4.14.1 Use a middleware for custom route arguments now.
9294
*/
9395
public function setArgument(string $name, string $value): RouteInterface;
9496

9597
/**
9698
* Replace route arguments
9799
*
98100
* @param array<string, string> $arguments
101+
*
102+
* @deprecated 4.14.1 Use a middleware for custom route arguments now.
99103
*/
100104
public function setArguments(array $arguments): self;
101105

0 commit comments

Comments
 (0)