for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\Container\Legacy\Container\Traits;
/**
* Trait DeprecatedMethodsTrait
* @package Nip\Container\Legacy\Container\Traits
*/
trait DeprecatedMethodsTrait
{
* Register a shared binding in the container.
*
* @param string|array $abstract
* @param \Closure|string|null $concrete
* @return void
* @deprecated Use new Share method instead
public function singleton($abstract, $concrete = null)
return $this->share($abstract, $concrete);
share()
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 */ share($abstract, $concrete);
}