for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Variables container
*
* @author USAMI Kenta <[email protected]>
* @copyright 2017 Baguette HQ
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0
*/
final class variables implements \ArrayAccess
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/** @var array */
private $data;
public function __construct(array $data)
$this->data = $data;
}
* @param string $offset
* @param array $option
* @return mixed
public function get($offset, array $option)
return isset($this[$offset]) ? $this[$offset] : $option['default'];
* @return bool
public function offsetExists($offset)
return array_key_exists($offset, $this->data);
public function offsetGet($offset)
return $this->data[$offset];
* @param mixed $value
* @return void
public function offsetSet($offset, $value)
$this->data[$offset] = $value;
* @param mixed $offset
public function offsetUnset($offset)
unset($this->data[$offset]);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.