Passed
Push — master ( ecccb9...b91912 )
by Robbie
08:46
created

src/ORM/FieldType/DBObjectType.php (1 issue)

Labels
Severity
1
<?php
2
namespace DNADesign\Elemental\ORM\FieldType;
3
4
use SilverStripe\GraphQL\Manager;
0 ignored issues
show
The type SilverStripe\GraphQL\Manager 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...
5
use SilverStripe\ORM\FieldType\DBField;
6
7
class DBObjectType extends DBField
8
{
9
    /**
10
     * Add the field to the underlying database.
11
     */
12
    public function requireField()
13
    {
14
        // noop - This class exists only to bind to a custom GraphQL type
15
    }
16
17
    public function getGraphQLType(Manager $manager)
18
    {
19
        return $manager->getType('ObjectType');
20
    }
21
}
22