for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Scrawler\Arca\Traits\Model;
trait ArrayAccess
{
public function offsetSet($offset, $value): void
if (is_null($offset)) {
throw new \Exception('Offset cannot be null');
} else {
$this->set($offset, $value);
set()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
set($offset, $value);
}
public function offsetExists($offset): bool
return $this->isset($offset);
isset()
return $this->/** @scrutinizer ignore-call */ isset($offset);
public function offsetUnset($offset): void
$this->unset($offset);
unset()
unset($offset);
public function offsetGet($offset): mixed
return $this->get($offset);
get()
return $this->/** @scrutinizer ignore-call */ get($offset);