@@ -26,7 +26,7 @@ trait RouteTrait
2626 *
2727 * @return $this
2828 */
29- final public function defaults (array $ defaults )
29+ final public function defaults (array $ defaults ): self
3030 {
3131 $ this ->route ->addDefaults ($ defaults );
3232
@@ -38,7 +38,7 @@ final public function defaults(array $defaults)
3838 *
3939 * @return $this
4040 */
41- final public function requirements (array $ requirements )
41+ final public function requirements (array $ requirements ): self
4242 {
4343 $ this ->route ->addRequirements ($ requirements );
4444
@@ -50,7 +50,7 @@ final public function requirements(array $requirements)
5050 *
5151 * @return $this
5252 */
53- final public function options (array $ options )
53+ final public function options (array $ options ): self
5454 {
5555 $ this ->route ->addOptions ($ options );
5656
@@ -62,7 +62,7 @@ final public function options(array $options)
6262 *
6363 * @return $this
6464 */
65- final public function utf8 (bool $ utf8 = true )
65+ final public function utf8 (bool $ utf8 = true ): self
6666 {
6767 $ this ->route ->addOptions (['utf8 ' => $ utf8 ]);
6868
@@ -74,7 +74,7 @@ final public function utf8(bool $utf8 = true)
7474 *
7575 * @return $this
7676 */
77- final public function condition (string $ condition )
77+ final public function condition (string $ condition ): self
7878 {
7979 $ this ->route ->setCondition ($ condition );
8080
@@ -86,7 +86,7 @@ final public function condition(string $condition)
8686 *
8787 * @return $this
8888 */
89- final public function host (string $ pattern )
89+ final public function host (string $ pattern ): self
9090 {
9191 $ this ->route ->setHost ($ pattern );
9292
@@ -101,7 +101,7 @@ final public function host(string $pattern)
101101 *
102102 * @return $this
103103 */
104- final public function schemes (array $ schemes )
104+ final public function schemes (array $ schemes ): self
105105 {
106106 $ this ->route ->setSchemes ($ schemes );
107107
@@ -116,7 +116,7 @@ final public function schemes(array $schemes)
116116 *
117117 * @return $this
118118 */
119- final public function methods (array $ methods )
119+ final public function methods (array $ methods ): self
120120 {
121121 $ this ->route ->setMethods ($ methods );
122122
@@ -130,7 +130,7 @@ final public function methods(array $methods)
130130 *
131131 * @return $this
132132 */
133- final public function controller ($ controller )
133+ final public function controller ($ controller ): self
134134 {
135135 $ this ->route ->addDefaults (['_controller ' => $ controller ]);
136136
@@ -142,7 +142,7 @@ final public function controller($controller)
142142 *
143143 * @return $this
144144 */
145- final public function locale (string $ locale )
145+ final public function locale (string $ locale ): self
146146 {
147147 $ this ->route ->addDefaults (['_locale ' => $ locale ]);
148148
@@ -154,7 +154,7 @@ final public function locale(string $locale)
154154 *
155155 * @return $this
156156 */
157- final public function format (string $ format )
157+ final public function format (string $ format ): self
158158 {
159159 $ this ->route ->addDefaults (['_format ' => $ format ]);
160160
0 commit comments