1 | <?php |
||
19 | class PackageDescriptorTest extends \Mockery\Adapter\Phpunit\MockeryTestCase |
||
20 | { |
||
21 | /** |
||
22 | * @covers phpDocumentor\Transformer\Router\UrlGenerator\Standard\PackageDescriptor::__invoke |
||
23 | * @covers phpDocumentor\Transformer\Router\UrlGenerator\Standard\QualifiedNameToUrlConverter::fromPackage |
||
24 | */ |
||
25 | public function testGenerateUrlForPackageDescriptor() |
||
38 | |||
39 | /** |
||
40 | * @covers phpDocumentor\Transformer\Router\UrlGenerator\Standard\PackageDescriptor::__invoke |
||
41 | * @covers phpDocumentor\Transformer\Router\UrlGenerator\Standard\QualifiedNameToUrlConverter::fromPackage |
||
42 | */ |
||
43 | public function testGenerateUrlForPackageDescriptorWithGlobalNamespace() |
||
56 | } |
||
57 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: