for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Understand\UnderstandLaravel5;
class DataCollector
{
/**
* Current token
*
* @var type
*/
protected $data = [];
* @var int
protected $limit = 50;
* @param $limit
public function setLimit($limit)
$this->limit = $limit;
}
* @return void
public function reset()
$this->data = [];
array()
array
object<Understand\UnderstandLaravel5\type>
$data
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..
* @param $key
* @param $value
public function set($key, $value)
$this->data[$key] = $value;
public function setInArray($key, $value)
if (isset($this->data[$key]) && count($this->data[$key]) > ($this->limit - 1))
array_shift($this->data[$key]);
$this->data[$key][] = $value;
* @return mixed
public function getByKey($key)
if (isset($this->data[$key]))
return $this->data[$key];
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..