The interface Mediact\DependencyGuard\...ndentsResolverInterface has been deprecated: The conceptual difference between dependents in Composer and DependencyGuard is too great to rely on the output of a dependents resolver.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
16
class DependentsResolver implements /** @scrutinizer ignore-deprecated */ DependentsResolverInterface
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be
removed and what other interface to use instead.
Loading history...
17
{
18
/** @var CompositeRepository */
19
private $repository;
20
21
/**
22
* Constructor.
23
*
24
* @param RepositoryInterface $repository
25
*/
26
1
public function __construct(RepositoryInterface $repository)
27
{
28
1
$this->repository = new CompositeRepository([$repository]);
29
1
}
30
31
/**
32
* Resolves the dependents of the package.
33
*
34
* @param string $packageName
35
*
36
* @return array
37
*/
38
5
public function resolve(string $packageName): array
39
{
40
5
return $this->getDependents(
41
5
$packageName,
42
5
false,
43
5
[]
44
);
45
}
46
47
/**
48
* Retrieves the dependents of a package in a recursive way.
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.