Skip to content

Commit

Permalink
Merge pull request #255 from humhub/fix/254-compatible-php81
Browse files Browse the repository at this point in the history
Fix compatible with PHP 8.1
  • Loading branch information
luke- committed Jan 8, 2023
2 parents d04d751 + b0a93a2 commit 4a247ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
1.8.7 (TBA)
------------------------
- Enh: Translatable Titles
- Fix #254: Fix compatible with PHP 8.1

1.8.6 (December 1, 2022)
------------------------
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Custom Pages",
"description": "Allows admins to create custom pages (html or markdown) or external links to various navigations (e.g. top navigation, account menu).",
"keywords": ["pages", "custom", "iframe", "markdown", "link", "navigation", "spaces"],
"version": "1.8.6",
"version": "1.8.7",
"homepage": "https://github.com/humhub/custom-pages",
"humhub": {
"minVersion": "1.12"
Expand Down
4 changes: 1 addition & 3 deletions modules/template/models/AssetVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,17 @@ public function offsetExists($offset): bool
return true;
}

public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return $this->get($offset);
}

public function offsetSet($offset, $value): void
{
return;
}

public function offsetUnset($offset): void
{
return;
}

}

0 comments on commit 4a247ae

Please sign in to comment.