Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implemented Doctrine\DBAL\Types\Type::getType handling #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
boesing wants to merge 3 commits into phpstan:master from boesing:feature/dbal-type

Conversation

@boesing
Copy link

@boesing boesing commented Aug 13, 2019

No description provided.

ste93cry and andreybolonin reacted with hooray emoji
arguments:
managerClass: Doctrine\Common\Persistence\ObjectManager

dbalTypeGetType:
Copy link
Member

@ondrejmirtes ondrejmirtes Sep 13, 2019

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

@ondrejmirtes ondrejmirtes Sep 13, 2019

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

@ondrejmirtes ondrejmirtes Sep 13, 2019

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?

Copy link
Member

Closing abandoned PR.

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

Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /