Skip to content

Commit

Permalink
#15598 - Change from var to mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Jan 9, 2022
1 parent 360120b commit fd2707c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions phalcon/Assets/Manager.zep
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,7 @@ class Manager extends AbstractInjectionAware
}
}

if (true !== empty(filters) && join)
{
if (true !== empty(filters) && join) {
/**
* Write the file using file_put_contents. This respects the
* openbase-dir also writes to streams
Expand Down
2 changes: 1 addition & 1 deletion phalcon/Di/Di.zep
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class Di implements DiInterface
* var_dump($di["request"]);
*```
*/
public function offsetGet(mixed name) -> var
public function offsetGet(mixed name) -> mixed
{
return this->getShared(name);
}
Expand Down
2 changes: 1 addition & 1 deletion phalcon/Support/Collection.zep
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class Collection implements
* Offset to retrieve
* See [offsetGet](https://php.net/manual/en/arrayaccess.offsetget.php)
*/
public function offsetGet(mixed element)
public function offsetGet(mixed element) -> mixed
{
let element = (string) element;

Expand Down
2 changes: 1 addition & 1 deletion phalcon/Support/Registry.zep
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ final class Registry extends Collection
*
* @link https://php.net/manual/en/arrayaccess.offsetget.php
*/
final public function offsetGet(var element) -> var
final public function offsetGet(mixed element) -> mixed
{
return parent::get(element);
}
Expand Down

0 comments on commit fd2707c

Please sign in to comment.