Skip to content

Commit

Permalink
Merge pull request #16328 from zikezhang/patch-3
Browse files Browse the repository at this point in the history
Update Router.zep
  • Loading branch information
niden authored Jan 11, 2024
2 parents 5145d88 + 1412de4 commit 4765962
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
## [5.6.1](https://github.com/phalcon/cphalcon/releases/tag/v5.6.0) (xxxx-xx-xx)

### Changed

-
- Changed `Phalcon\Cli\Router::setDefaultAction` and `Phalcon\Cli\Router::setDefaultModule` to return the object back for a fluent interface [#16328](https://github.com/phalcon/cphalcon/issues/16328)

### Added

### Fixed

- Fixed `/Db/Adapter/Pdo/Postgresql::describeColumns` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)
- Fixed `Phalcon\Db\Adapter\Pdo\Postgresql::describeColumns()` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)

### Removed

Expand Down
7 changes: 5 additions & 2 deletions phalcon/Cli/Router.zep
Original file line number Diff line number Diff line change
Expand Up @@ -461,17 +461,20 @@ class Router extends AbstractInjectionAware
/**
* Sets the default action name
*/
public function setDefaultAction(string actionName)
public function setDefaultAction(string actionName) -> <Router>
{
let this->defaultAction = actionName;

return this;
}

/**
* Sets the name of the default module
*/
public function setDefaultModule(string moduleName)
public function setDefaultModule(string moduleName) -> <Router>
{
let this->defaultModule = moduleName;
return this;
}

/**
Expand Down

0 comments on commit 4765962

Please sign in to comment.