for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
*/
namespace Mvc5\Config;
trait ReadOnly
{
use Config {
remove as protected;
set as protected;
}
* @param string $name
* @param mixed $value
* @throws \Exception
function offsetSet($name, $value)
$name
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
function offsetSet(/** @scrutinizer ignore-unused */ $name, $value)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$value
function offsetSet($name, /** @scrutinizer ignore-unused */ $value)
throw new \Exception('Invalid operation: object cannot be modified');
function offsetUnset($name) : void
function offsetUnset(/** @scrutinizer ignore-unused */ $name) : void
function __set($name, $value)
function __unset($name) : void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.