Skip to content
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

Regression test #414

Merged
merged 4 commits into from
Jan 11, 2016
Merged

Regression test #414

merged 4 commits into from
Jan 11, 2016

Conversation

mikeSimonson
Copy link
Contributor

No description provided.

$this->connection->getDatabasePlatform());
$this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider);
$this->schemaProvider = $schemaProvider;
if(is_null($this->schemaProvider)) {
Copy link
Member

Choose a reason for hiding this comment

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

can it ever be null? the docblock states it can't...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this

/** @var SchemaDiffProviderInterface */
    private $schemaProvider;

means that the property can never be null ?

It will never be null it's just the parameter of the constructor that is optional.

Copy link
Member

Choose a reason for hiding this comment

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

Then it should state /** @var SchemaDiffProviderInterface|null */

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does the new way of setting that property prevent the need for null in the docblock ?

$schemaProvider = new SchemaDiffProvider($this->connection->getSchemaManager(),
$this->connection->getDatabasePlatform());
$this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider);
if (!is_null($schemaProvider)) {
Copy link
Member

Choose a reason for hiding this comment

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

null === ...

mikeSimonson added a commit that referenced this pull request Jan 11, 2016
@mikeSimonson mikeSimonson merged commit 12da9b8 into doctrine:master Jan 11, 2016
@mikeSimonson mikeSimonson deleted the regression-test branch January 11, 2016 21:20
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