Skip to content

Commit

Permalink
AnyOfTemplate::_construct() accept any iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Oct 12, 2022
1 parent c21c2b7 commit 59c3c5c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/termTemplates/AnyOfTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

namespace termTemplates;

use Traversable;
use rdfInterface\Term as iTerm;
use rdfInterface\TermCompare as iTermCompare;

Expand All @@ -39,15 +38,15 @@ class AnyOfTemplate implements iTermCompare {

/**
*
* @var Traversable<iTerm>
* @var iterable<iTerm>
*/
private Traversable $terms;
private iterable $terms;

/**
*
* @param Traversable<iTerm> $terms
* @param iterable<iTerm> $terms
*/
public function __construct(Traversable $terms) {
public function __construct(iterable $terms) {
$this->terms = $terms;
}

Expand Down

0 comments on commit 59c3c5c

Please sign in to comment.