Replies: 3 comments 7 replies
-
Can you be more specific? What code does not work for you? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Yeah I also hit this. @bark92's fix worked. More specifically, the function looks like this now: /**
* @return mixed Move to return type when PHP 7 support is dropped
*/
#[\ReturnTypeWillChange]
public function current()
{
$current = $this->parserIterator->current();
if ($current instanceof IteratorAggregate) {
return new self($current, $this->options);
} elseif ( ! is_scalar($current) && $current !== null) {
throw new InvalidArgumentException(
sprintf(
'%s only accepts scalar or IteratorAggregate values. %s given.',
self::class,
is_object($current) ? get_class($current) : gettype($current)
)
);
}
return $current;
} Keep in mind that |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. Fixed here 52685e1 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
some value of my json is contain value null. is there any method to use RecursiveItems when have null as value.?
for example :
Beta Was this translation helpful? Give feedback.
All reactions