Skip to content

Conversation

@boesing
Copy link

@boesing boesing commented Aug 13, 2019

No description provided.

arguments:
managerClass: Doctrine\Common\Persistence\ObjectManager

dbalTypeGetType:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This service can be marked only with - (because it's very unlikely someone will want to override it) and moved above to other anonymous - services.

return new ObjectType($dbalTypeArg->class->toString());
}

if ($dbalTypeArg instanceof Scalar\String_) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to ask for $scope->getType($dbalTypeArg) and check against ConstantStringType.

<?php
declare(strict_types=1);

namespace PHPStan\DoctrineIntegration\DBAL\DBALTypesTypeStaticGetTypeUsage;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file isn't mentioned/tested anywhere?

@ondrejmirtes
Copy link
Member

Closing abandoned PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants