Skip to content

Commit

Permalink
Merge pull request #16379 from niden/T16276-view-getvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson authored Jul 20, 2023
2 parents c8353f1 + a8e4047 commit 1b0390d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
### Fixed
- Tried to reproduce the behavior described in #16244 but had no success. [#16244](https://github.com/phalcon/cphalcon/issues/16244)
- Added `getAdapter()` in `Phalcon\Mvc\Model\Metadata` to retrieve the internal cache adapter if necessary. [#16244](https://github.com/phalcon/cphalcon/issues/16244)
- Added `Phalcon\Storage\Adapter\Weak` implemented with WeakReference has a cache/retrieval solution for objects not yet collected by the Garbage Collection. [#16372] (https://github.com/phalcon/cphalcon/issues/16372)
- Added `Phalcon\Storage\Adapter\Weak` implemented with WeakReference has a cache/retrieval solution for objects not yet collected by the Garbage Collection. [#16372](https://github.com/phalcon/cphalcon/issues/16372)
- Extended `Phalcon\Di\Injectable` from `stdClass` to remove the deprecation warning (dynamic properties) for PHP 8.2 [#16308](https://github.com/phalcon/cphalcon/issues/16308)
- Corrected the return type of `Phalcon\Mvc\View::getVar()` so that stubs can be accurate. [#16276](https://github.com/phalcon/cphalcon/issues/16276)


## [5.2.2](https://github.com/phalcon/cphalcon/releases/tag/v5.2.2) (2023-06-18)

Expand Down
4 changes: 3 additions & 1 deletion phalcon/Mvc/View.zep
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,10 @@ class View extends Injectable implements ViewInterface, EventsAwareInterface

/**
* Returns a parameter previously set in the view
*
* @return mixed|null
*/
public function getVar(string! key)
public function getVar(string! key) -> var | null
{
var value;

Expand Down

0 comments on commit 1b0390d

Please sign in to comment.