for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (c) Nate Brunette.
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
namespace Tebru\Gson\Internal;
use SplQueue;
use Tebru\Gson\Element\JsonObject;
/**
* Class JsonObjectIterator
*
* @author Nate Brunette <[email protected]>
final class JsonObjectIterator extends AbstractIterator
{
* Constructor
* @param JsonObject $jsonObject
public function __construct(JsonObject $jsonObject)
$this->queue = new SplQueue();
new \SplQueue()
object<SplQueue>
array
$queue
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
foreach($jsonObject as $key => $value) {
$this->queue[] = [$key, $value];
$this->total++;
}
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..