-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Regression test #414
Conversation
$this->connection->getDatabasePlatform()); | ||
$this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider); | ||
$this->schemaProvider = $schemaProvider; | ||
if(is_null($this->schemaProvider)) { |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 */
There was a problem hiding this comment.
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 ?
8c724fa
to
e6a2fe9
Compare
$schemaProvider = new SchemaDiffProvider($this->connection->getSchemaManager(), | ||
$this->connection->getDatabasePlatform()); | ||
$this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider); | ||
if (!is_null($schemaProvider)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null === ...
No description provided.