Skip to content

Commit 3732699

Browse files
author
Grégoire Paris
committed
Improve deprecation wording
People that are starting a new project will immediately know what this is about, but people upgrading doctrine might get a lot of these and should have a better clue regarding what this is about.
1 parent cb08c4d commit 3732699

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Doctrine/DBAL/Schema/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function setOptions(array $options)
121121
if ( ! method_exists($this, $method)) {
122122
// next major: throw an exception
123123
@trigger_error(sprintf(
124-
'The "%s" option is not supported,'.
124+
'The "%s" doctrine column option is not supported,'.
125125
' setting it is deprecated and will cause an error in 3.0',
126126
$name
127127
), E_USER_DEPRECATED);

tests/Doctrine/Tests/DBAL/Schema/ColumnTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testToArray()
5858

5959
/**
6060
* @group legacy
61-
* @expectedDeprecation The "unknown_option" option is not supported, setting it is deprecated and will cause an error in 3.0
61+
* @expectedDeprecation The "unknown_option" doctrine column option is not supported, setting it is deprecated and will cause an error in 3.0
6262
*/
6363
public function testSettingUnknownOptionIsStillSupported() : void
6464
{

0 commit comments

Comments
 (0)