Unverified Commit 6565790f authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2935 from greg0ire/improve_wording

Improve deprecation wording in `Doctrine\DBAL\Schema\Column#setOptions()`
parents cb08c4dd 4256d176
...@@ -121,8 +121,8 @@ class Column extends AbstractAsset ...@@ -121,8 +121,8 @@ class Column extends AbstractAsset
if ( ! method_exists($this, $method)) { if ( ! method_exists($this, $method)) {
// next major: throw an exception // next major: throw an exception
@trigger_error(sprintf( @trigger_error(sprintf(
'The "%s" option is not supported,'. 'The "%s" column option is not supported,'.
' setting it is deprecated and will cause an error in 3.0', ' setting it is deprecated and will cause an error in Doctrine 3.0',
$name $name
), E_USER_DEPRECATED); ), E_USER_DEPRECATED);
......
...@@ -58,7 +58,7 @@ class ColumnTest extends \PHPUnit\Framework\TestCase ...@@ -58,7 +58,7 @@ class ColumnTest extends \PHPUnit\Framework\TestCase
/** /**
* @group legacy * @group legacy
* @expectedDeprecation The "unknown_option" option is not supported, setting it is deprecated and will cause an error in 3.0 * @expectedDeprecation The "unknown_option" column option is not supported, setting it is deprecated and will cause an error in Doctrine 3.0
*/ */
public function testSettingUnknownOptionIsStillSupported() : void public function testSettingUnknownOptionIsStillSupported() : void
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment