Skip to content

Commit

Permalink
Help phpstan a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Jul 6, 2023
1 parent 6d62786 commit 7007dcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Phing\Task;
use Phing\Type\Element\FileSetAware;
use phpDocumentor\Bootstrap;

Check warning on line 30 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'phpDocumentor'

Check warning on line 30 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Bootstrap'
use phpDocumentor\Descriptor\Cache\ProjectDescriptorMapper;

Check warning on line 31 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Cache'

Check warning on line 31 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'ProjectDescriptorMapper'
use phpDocumentor\Fileset\Collection;

Check warning on line 32 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Fileset'

Check warning on line 32 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Collection'

/**
Expand Down Expand Up @@ -218,7 +219,8 @@ private function parseFiles()
$files = new Collection();

Check warning on line 219 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Collection'
$files->addFiles($paths);

$mapper = new \phpDocumentor\Descriptor\Cache\ProjectDescriptorMapper($this->app['descriptor.cache']);
/** @phpstan-ignore-next-line */
$mapper = new ProjectDescriptorMapper($this->app['descriptor.cache']);

Check warning on line 223 in src/Phing/Task/Ext/PhpDoc/PhpDocumentor2Task.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'ProjectDescriptorMapper'
$mapper->garbageCollect($files);
$mapper->populate($projectDescriptor);

Expand Down

0 comments on commit 7007dcd

Please sign in to comment.