1 | <?php |
||
2 | |||
3 | use Sami\RemoteRepository\GitHubRemoteRepository; |
||
0 ignored issues
–
show
|
|||
4 | use Sami\Sami; |
||
0 ignored issues
–
show
The type
Sami\Sami 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
5 | use Sami\Version\GitVersionCollection; |
||
0 ignored issues
–
show
The type
Sami\Version\GitVersionCollection 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
6 | use Symfony\Component\Finder\Finder; |
||
7 | |||
8 | $iterator = Finder::create() |
||
9 | ->files() |
||
10 | ->name('*.php') |
||
11 | ->in($dir = __DIR__ . '/src'); |
||
12 | $versions = GitVersionCollection::create($dir) |
||
13 | ->addFromTags(function ($version) { |
||
14 | return preg_match('~^\d+\.\d+\.\d+$~', $version); |
||
15 | }) |
||
16 | ->add('master'); |
||
17 | |||
18 | return new Sami($iterator, [ |
||
19 | 'title' => 'PhpSpreadsheet', |
||
20 | 'versions' => $versions, |
||
21 | 'build_dir' => __DIR__ . '/build/%version%', |
||
22 | 'cache_dir' => __DIR__ . '/cache/%version%', |
||
23 | 'remote_repository' => new GitHubRemoteRepository('PHPOffice/PhpSpreadsheet', dirname($dir)), |
||
24 | ]); |
||
25 |
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