Skip to content

Commit 1c462ee

Browse files
authored
Merge pull request #6086 from Aweptimum/trigger-outside
2 parents 90469f5 + 5e141d8 commit 1c462ee

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/Schema/AbstractSchemaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ protected function doListTables(): array
442442
*/
443443
public function listTableDetails($name)
444444
{
445-
Deprecation::trigger(
445+
Deprecation::triggerIfCalledFromOutside(
446446
'doctrine/dbal',
447447
'https://github.com/doctrine/dbal/pull/5595',
448448
'%s is deprecated. Use introspectTable() instead.',

src/Schema/DB2SchemaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function listTables()
5050
*/
5151
public function listTableDetails($name)
5252
{
53-
Deprecation::trigger(
53+
Deprecation::triggerIfCalledFromOutside(
5454
'doctrine/dbal',
5555
'https://github.com/doctrine/dbal/pull/5595',
5656
'%s is deprecated. Use introspectTable() instead.',

src/Schema/MySQLSchemaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function listTables()
7373
*/
7474
public function listTableDetails($name)
7575
{
76-
Deprecation::trigger(
76+
Deprecation::triggerIfCalledFromOutside(
7777
'doctrine/dbal',
7878
'https://github.com/doctrine/dbal/pull/5595',
7979
'%s is deprecated. Use introspectTable() instead.',

src/Schema/OracleSchemaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function listTables()
5151
*/
5252
public function listTableDetails($name)
5353
{
54-
Deprecation::trigger(
54+
Deprecation::triggerIfCalledFromOutside(
5555
'doctrine/dbal',
5656
'https://github.com/doctrine/dbal/pull/5595',
5757
'%s is deprecated. Use introspectTable() instead.',

src/Schema/PostgreSQLSchemaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function listTables()
6363
*/
6464
public function listTableDetails($name)
6565
{
66-
Deprecation::trigger(
66+
Deprecation::triggerIfCalledFromOutside(
6767
'doctrine/dbal',
6868
'https://github.com/doctrine/dbal/pull/5595',
6969
'%s is deprecated. Use introspectTable() instead.',

src/Schema/SQLServerSchemaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function listTables()
5555
*/
5656
public function listTableDetails($name)
5757
{
58-
Deprecation::trigger(
58+
Deprecation::triggerIfCalledFromOutside(
5959
'doctrine/dbal',
6060
'https://github.com/doctrine/dbal/pull/5595',
6161
'%s is deprecated. Use introspectTable() instead.',

0 commit comments

Comments
 (0)