Skip to content

Commit c32461a

Browse files
authored
Merge pull request #81 from joomla-framework/revert-and-add-baseline
Convert stdClass to array and add baseline
2 parents 61916c9 + 10b2286 commit c32461a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ parameters:
1212
count: 1
1313
path: src/Registry.php
1414

15-
-
16-
message: '#^Parameter \#1 \$array of class ArrayIterator constructor expects array\<TKey of \(int\|string\), TValue\>, stdClass given\.$#'
17-
identifier: argument.type
18-
count: 1
19-
path: src/Registry.php
20-
2115
-
2216
message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(string\)\: bool\)\|null, ''strlen'' given\.$#'
2317
identifier: argument.type

src/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function get($path, $default = null)
253253
#[\ReturnTypeWillChange]
254254
public function getIterator()
255255
{
256-
return new \ArrayIterator($this->data);
256+
return new \ArrayIterator($this->toArray());
257257
}
258258

259259
/**

0 commit comments

Comments
 (0)