Skip to content

Commit

Permalink
Deprecate SchemaDiff::$fromSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Sep 11, 2022
1 parent 58beef0 commit 0a17cb6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ The constructors of the following classes have been marked as internal:
These classes can be instantiated only by schema comparators. The signatures of the constructors may change in future
versions.

## Deprecated `SchemaDiff` reference to the original schema.

The `SchemaDiff::$fromSchema` property has been deprecated.

## Marked `AbstractSchemaManager::_execSql()` as internal.

The `AbstractSchemaManager::_execSql()` method has been marked as internal. It will not be available in 4.0.
Expand Down
4 changes: 4 additions & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@
<!--
TODO: remove in 4.0.0
-->
<referencedProperty name="Doctrine\DBAL\Schema\SchemaDiff::$fromSchema"/>
<!--
TODO: remove in 4.0.0
-->
<referencedProperty name="Doctrine\DBAL\Schema\ColumnDiff::$oldColumnName"/>
<!--
TODO: remove in 4.0.0
Expand Down
6 changes: 5 additions & 1 deletion src/Schema/SchemaDiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
*/
class SchemaDiff
{
/** @var Schema|null */
/**
* @deprecated
*
* @var Schema|null
*/
public $fromSchema;

/**
Expand Down

0 comments on commit 0a17cb6

Please sign in to comment.