Skip to content

Commit

Permalink
Update README for PHP 8 compatibility fork
Browse files Browse the repository at this point in the history
Added a disclaimer about the forked repository and updated the installation command to reflect the new package name compatible with PHP 8. This ensures clarity for users on the origin and purpose of the changes.
  • Loading branch information
Gcolon021 committed Jan 31, 2025
1 parent cd4346a commit 47845b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Jlinn/Mandrill/Struct.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace Jlinn\Mandrill;

use ArrayIterator;
use Traversable;

abstract class Struct implements \IteratorAggregate{
/**
* Create a Struct from an associative array
Expand Down Expand Up @@ -44,11 +47,12 @@ public function toArray(){
* (PHP 5 &gt;= 5.0.0)<br/>
* Retrieve an external iterator
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
* @return \Traversable An instance of an object implementing <b>Iterator</b> or
* @return Traversable|ArrayIterator An instance of an object implementing <b>Iterator</b> or
* <b>Traversable</b>
*/
public function getIterator(){
return new \ArrayIterator($this->toArray());
public function getIterator(): \Traversable|\ArrayIterator
{
return new ArrayIterator($this->toArray());
}


Expand Down

0 comments on commit 47845b1

Please sign in to comment.