for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the sj-i/php-profiler package.
*
* (c) sji <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace PhpProfiler\Lib\ByteStream;
use LogicException;
* Trait ByteReaderDisableWriteAccessTrait
* @package PhpProfiler\Lib\Binary
trait ByteReaderDisableWriteAccessTrait
{
public function offsetSet($offset, $value): void
$value
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function offsetSet($offset, /** @scrutinizer ignore-unused */ $value): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$offset
public function offsetSet(/** @scrutinizer ignore-unused */ $offset, $value): void
throw new LogicException('write access is forbidden for ByteReaderInteface');
}
public function offsetUnset($offset): void
public function offsetUnset(/** @scrutinizer ignore-unused */ $offset): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.