Skip to content

Commit

Permalink
rex_yform_manager_collection: Methode current existiert in PHP 8 nich…
Browse files Browse the repository at this point in the history
…t mehr (#1358)
  • Loading branch information
gharlan authored Jan 24, 2023
1 parent 97ee174 commit 72c9c24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions plugins/manager/lib/yform/manager/collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
* @method rex_yform_manager_dataset offsetGet($offset)
* @psalm-method T offsetGet($offset)
* @method rex_yform_manager_dataset current()
* @psalm-method T current()
* @method list<T> toArray()
*/
class rex_yform_manager_collection extends \SplFixedArray
Expand Down
2 changes: 1 addition & 1 deletion plugins/rest/lib/rest/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function handleRequest(array $paths, array $get)
echo $attribute;
$instances = $instance->getRelatedCollection($attribute);
if (count($instances) > 0) {
$instance = $instances->current();
$instance = $instances->first();
}
$fields = $this->getFields('get', $instance);
$instance = null;
Expand Down

0 comments on commit 72c9c24

Please sign in to comment.