Skip to content

Commit

Permalink
phalcon#16477 - Change return type of `Phalcon\Config\Adapter\Ini::ca…
Browse files Browse the repository at this point in the history
…st()` to `mixed`
  • Loading branch information
Jeckerson committed Dec 23, 2023
1 parent 94ee748 commit 6af02d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Shifted minimal support from PHP 7.4 to PHP 8.0 [#16477](https://github.com/phalcon/cphalcon/issues/16477)
- Changed `Phalcon\Mvc\Model::toArray` to use getters if present [#16320](https://github.com/phalcon/cphalcon/issues/16320)
- Adjusted return types identical to original interface `int|false` in `Phalcon\Session\Adapter\*::gc()` [#16477](https://github.com/phalcon/cphalcon/issues/16477)
- Changed return type of `Phalcon\Config\Adapter\Ini::cast()` to `mixed` [#16477](https://github.com/phalcon/cphalcon/issues/16477)

### Added

Expand Down
4 changes: 2 additions & 2 deletions phalcon/Config/Adapter/Ini.zep
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ class Ini extends Config
*
* @param mixed $ini
*
* @return array|float|int|mixed|string|null
* @return mixed
*/
protected function cast(var ini) -> bool | null | double | int | string
protected function cast(var ini) -> mixed
{
var lowerIni;
array castMap;
Expand Down

0 comments on commit 6af02d5

Please sign in to comment.