Issues (41)

lib/OfxParser/Parsers/Investment.php (2 issues)

Labels
Severity
1
<?php declare(strict_types=1);
2
3
namespace OfxParser\Parsers;
4
5
use SimpleXMLElement;
6
use \OfxParser\Parser;
0 ignored issues
show
The type \OfxParser\Parser 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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use \OfxParser\Ofx\Investment as InvestmentOfx;
0 ignored issues
show
The type \OfxParser\Ofx\Investment 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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
class Investment extends Parser
10
{
11
    /**
12
     * Factory to support Investment OFX document structure.
13
     * @param SimpleXMLElement $xml
14
     * @return InvestmentOfx
15
     */
16 4
    protected function createOfx(SimpleXMLElement $xml): InvestmentOfx
17
    {
18 4
        return new InvestmentOfx($xml);
19
    }
20
}
21