No need to unwrap to an array
Since OpenPGP_Message implements the array interface
This commit is contained in:
parent
975fc2ff7e
commit
1a1b8980e6
@ -790,15 +790,12 @@ class OpenPGP_CompressedDataPacket extends OpenPGP_Packet implements IteratorAgg
|
|||||||
default:
|
default:
|
||||||
/* TODO error? */
|
/* TODO error? */
|
||||||
}
|
}
|
||||||
if($this->data) {
|
|
||||||
$this->data = $this->data->packets;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IteratorAggregate interface
|
// IteratorAggregate interface
|
||||||
|
|
||||||
function getIterator() {
|
function getIterator() {
|
||||||
return new ArrayIterator($this->data);
|
return new ArrayIterator($this->data->packets);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ArrayAccess interface
|
// ArrayAccess interface
|
||||||
|
Loading…
Reference in New Issue
Block a user