for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\Collections\Legacy\Traits;
/**
* Trait DeprecatedTraits
* @package Nip\Collections\Legacy\Traits
*/
trait DeprecatedTraits
{
* @param $key
* @return bool
* @deprecated Use ->has($key) instead
public function exists($key)
return $this->has($key);
has()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ has($key);
}