for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (S)elect (R)an(D)om
* User: moyo
* Date: 22/12/2017
* Time: 4:58 PM
*/
namespace Carno\Pool\Wrapper;
use Carno\Pool\Contracts\Select;
use Carno\Pool\Pool;
trait SRD
{
* @deprecated
* @param Pool $pool
* @param string $method
* @param array $arguments
* @return mixed
protected function rndRun(Pool $pool, string $method, array $arguments)
return yield $pool->select(Select::RANDOM)->$method(...$arguments);
Carno\Pool\Contracts\Select::RANDOM
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
return yield $pool->select(/** @scrutinizer ignore-deprecated */ Select::RANDOM)->$method(...$arguments);
}