src/SourceLocator/Type/EvaledCodeSourceLocator.php
protected function createLocatedSource(Identifier $identifier) : ?LocatedSource
    {
        $classReflection = $this->getInternalReflectionClass($identifier);

        if ($classReflection === null) {
            return null;
        }

        $stub = $this->stubber->generateClassStub($classReflection);

        if ($stub === null) {
            return null;
        }

        return new EvaledLocatedSource($stub);
    }
protected function createLocatedSource(Identifier $identifier) : ?LocatedSource
    {
        $classReflection = $this->getInternalReflectionClass($identifier);

        if ($classReflection === null) {
            return null;
        }

        $stub = $this->stubber->generateClassStub($classReflection);

        if ($stub === null) {
            return null;
        }

        return new EvaledLocatedSource($stub);
    }
{@inheritDoc}

@throws InvalidArgumentException
@throws InvalidFileLocation