refactor: add missing template implements where needed

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/52846/head
Ferdinand Thiessen 5 months ago
parent 4aa4972550
commit b6515f9402
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
  1. 4
      lib/public/EventDispatcher/GenericEvent.php
  2. 10
      lib/public/L10N/ILanguageIterator.php

@ -18,10 +18,12 @@ use function array_key_exists;
/**
* Class GenericEvent
*
* convenience reimplementation of \Symfony\Component\GenericEvent against
* convenience re-implementation of \Symfony\Component\GenericEvent against
* \OCP\EventDispatcher\Event
*
* @since 18.0.0
* @template-implements ArrayAccess<array-key, mixed>
* @template-implements IteratorAggregate<array-key, mixed>
* @deprecated 22.0.0 use \OCP\EventDispatcher\Event
*/
class GenericEvent extends Event implements ArrayAccess, IteratorAggregate {

@ -21,7 +21,7 @@ namespace OCP\L10N;
* if settings are not present or truncating is not applicable, the iterator
* skips to the next valid item itself
*
*
* @template-extends \Iterator<int, string>
* @since 14.0.0
*/
interface ILanguageIterator extends \Iterator {
@ -36,22 +36,20 @@ interface ILanguageIterator extends \Iterator {
* Move forward to next element
*
* @since 14.0.0
* @return void
*/
#[\ReturnTypeWillChange]
public function next();
public function next(): void;
/**
* Return the key of the current element
*
* @since 14.0.0
*/
public function key():int;
public function key(): int;
/**
* Checks if current position is valid
*
* @since 14.0.0
*/
public function valid():bool;
public function valid(): bool;
}

Loading…
Cancel
Save