for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Reallyli\AB\Session;
use Illuminate\Support\Facades\Session;
class LaravelSession implements SessionInterface
{
/**
* The session key.
*
* @var string
*/
protected $sessionName = 'ab';
* A copy of the session data.
* @var array
protected $data = null;
* Constructor.
public function __construct()
$this->data = Session::get($this->sessionName, []);
\Illuminate\Support\Faca...->sessionName, array())
array
$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..
}
* {@inheritdoc}
public function get($name, $default = null)
return array_get($this->data, $name, $default);
public function set($name, $value)
$this->data[$name] = $value;
return Session::set($this->sessionName, $this->data);
public function clear()
$this->data = [];
return Session::forget($this->sessionName);
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..