Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix PHPDoc types in Route class. #7442

Merged
merged 2 commits into from
Apr 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions system/Router/RouteCollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface RouteCollectionInterface
* @param array|Closure|string $to
* @param array $options
*
* @return mixed
* @return RouteCollectionInterface
*/
public function add(string $from, $to, ?array $options = null);

Expand All @@ -46,31 +46,31 @@ public function add(string $from, $to, ?array $options = null);
* @param array|string $placeholder
* @param string $pattern
*
* @return mixed
* @return RouteCollectionInterface
*/
public function addPlaceholder($placeholder, ?string $pattern = null);

/**
* Sets the default namespace to use for Controllers when no other
* namespace has been specified.
*
* @return mixed
* @return RouteCollectionInterface
*/
public function setDefaultNamespace(string $value);

/**
* Sets the default controller to use when no other controller has been
* specified.
*
* @return mixed
* @return RouteCollectionInterface
*/
public function setDefaultController(string $value);

/**
* Sets the default method to call on the controller when no other
* method has been set in the route.
*
* @return mixed
* @return RouteCollectionInterface
*/
public function setDefaultMethod(string $value);

Expand All @@ -81,7 +81,7 @@ public function setDefaultMethod(string $value);
* find words and meaning in the URI for better SEO. But it
* doesn't work well with PHP method names....
*
* @return mixed
* @return RouteCollectionInterface
*/
public function setTranslateURIDashes(bool $value);

Expand Down