The type Psr\Log\NullLogger was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
null of type null is incompatible with the type App\Crossword\Features\C...Adapter\Dictionary\null expected by parameter $wordDto of App\Crossword\Infrastruc...yAdapter::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
27
$inMemoryDictionaryProvider = new InMemoryDictionaryAdapter($dictionaryLanguagesDto, /** @scrutinizer ignore-type */ null);
Loading history...
28
29
$supportedLanguages = new SupportedLanguages($inMemoryDictionaryProvider, new NullLogger());
null of type null is incompatible with the type App\Crossword\Features\C...Adapter\Dictionary\null expected by parameter $wordDto of App\Crossword\Infrastruc...yAdapter::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
43
$inMemoryDictionaryProvider = new InMemoryDictionaryAdapter($dictionaryLanguagesDto, /** @scrutinizer ignore-type */ null);
Loading history...
44
45
$supportedLanguages = new SupportedLanguages($inMemoryDictionaryProvider, new NullLogger());
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths