for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace Wikibase\JsonDumpReader\Reader;
use Wikibase\JsonDumpReader\DumpReader;
/**
* Package public
* @since 1.0.0
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class FakeDumpReader implements DumpReader {
* @var string[]
private $lines;
* @param string $lines
public function __construct( $lines ) {
$this->lines = $lines;
$lines
string
array<integer,string>
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..
$this->rewind();
}
public function rewind(): void {
reset( $this->lines );
* @return string|null
public function nextJsonLine(): ?string {
$current = current( $this->lines );
if ( $current === false ) {
return null;
else {
next( $this->lines );
return $current;
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..