Skip to content

Commit 0236693

Browse files
committed
fix b7c breaks
1 parent 54627ad commit 0236693

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/DataObject.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function dump($depth = 3, ?\SplObjectStorage $dumped = null)
199199
* @see IteratorAggregate::getIterator()
200200
* @since 1.0
201201
*/
202-
public function getIterator(): \ArrayIterator
202+
public function getIterator()
203203
{
204204
$value = ArrayHelper::fromObject($this->dump(0));
205205

@@ -213,7 +213,7 @@ public function getIterator(): \ArrayIterator
213213
*
214214
* @since 1.0
215215
*/
216-
public function jsonSerialize(): \stdClass
216+
public function jsonSerialize()
217217
{
218218
return $this->dump();
219219
}
@@ -307,7 +307,7 @@ protected function setProperty($property, $value)
307307
*
308308
* @since 1.0
309309
*/
310-
public function count(): int
310+
public function count()
311311
{
312312
return \count($this->properties);
313313
}

src/DataSet.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(array $objects = [])
6262
*
6363
* @since 1.0
6464
*/
65-
public function __call($method, $arguments = []): array
65+
public function __call($method, $arguments = [])
6666
{
6767
$return = [];
6868

@@ -97,7 +97,7 @@ public function __call($method, $arguments = []): array
9797
*
9898
* @since 1.0
9999
*/
100-
public function __get($property): array
100+
public function __get($property)
101101
{
102102
$return = [];
103103

@@ -121,7 +121,7 @@ public function __get($property): array
121121
*
122122
* @since 1.0
123123
*/
124-
public function __isset($property): bool
124+
public function __isset($property)
125125
{
126126
$return = [];
127127

@@ -149,7 +149,7 @@ public function __isset($property): bool
149149
*
150150
* @since 1.0
151151
*/
152-
public function __set($property, $value): void
152+
public function __set($property, $value)
153153
{
154154
// Iterate through the objects.
155155
foreach ($this->objects as $object) {
@@ -171,7 +171,7 @@ public function __set($property, $value): void
171171
*
172172
* @since 1.0
173173
*/
174-
public function __unset($property): void
174+
public function __unset($property)
175175
{
176176
// Iterate through the objects.
177177
foreach ($this->objects as $object) {
@@ -189,7 +189,7 @@ public function __unset($property): void
189189
* @since 1.2.0
190190
* @throws \InvalidArgumentException
191191
*/
192-
public function getObjectsKeys($type = 'all'): array
192+
public function getObjectsKeys($type = 'all')
193193
{
194194
$keys = null;
195195

@@ -220,7 +220,7 @@ public function getObjectsKeys($type = 'all'): array
220220
*
221221
* @since 1.2.0
222222
*/
223-
public function toArray($associative = true, ...$keys): array
223+
public function toArray($associative = true, ...$keys)
224224
{
225225
if (empty($keys)) {
226226
$keys = $this->getObjectsKeys();
@@ -255,7 +255,7 @@ public function toArray($associative = true, ...$keys): array
255255
*
256256
* @since 1.0
257257
*/
258-
public function count(): int
258+
public function count()
259259
{
260260
return \count($this->objects);
261261
}
@@ -267,7 +267,7 @@ public function count(): int
267267
*
268268
* @since 1.0
269269
*/
270-
public function clear(): DataSet
270+
public function clear()
271271
{
272272
$this->objects = [];
273273
$this->rewind();
@@ -282,7 +282,7 @@ public function clear(): DataSet
282282
*
283283
* @since 1.0
284284
*/
285-
public function current(): DataObject|bool
285+
public function current()
286286
{
287287
return is_scalar($this->current) ? $this->objects[$this->current] : false;
288288
}
@@ -300,7 +300,7 @@ public function current(): DataObject|bool
300300
* @see DataObject::dump()
301301
* @since 1.0
302302
*/
303-
public function dump($depth = 3, ?\SplObjectStorage $dumped = null): array
303+
public function dump($depth = 3, ?\SplObjectStorage $dumped = null)
304304
{
305305
// Check if we should initialise the recursion tracker.
306306
if ($dumped === null) {
@@ -333,7 +333,7 @@ public function dump($depth = 3, ?\SplObjectStorage $dumped = null): array
333333
*
334334
* @since 1.0
335335
*/
336-
public function jsonSerialize(): array
336+
public function jsonSerialize()
337337
{
338338
$return = [];
339339

0 commit comments

Comments
 (0)