Skip to content

Commit 8810aea

Browse files
minor #27877 improve deprecation messages (xabbuh)
This PR was merged into the 4.1 branch. Discussion ---------- improve deprecation messages | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- e4ae5a4ca9 improve deprecation messages
2 parents b019615 + 42dd9b9 commit 8810aea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Helper/TableStyle.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function setHorizontalBorderChars(string $outside, string $inside = null)
110110
*/
111111
public function setHorizontalBorderChar($horizontalBorderChar)
112112
{
113-
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1, use setHorizontalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
113+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use setHorizontalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
114114

115115
return $this->setHorizontalBorderChars($horizontalBorderChar, $horizontalBorderChar);
116116
}
@@ -124,7 +124,7 @@ public function setHorizontalBorderChar($horizontalBorderChar)
124124
*/
125125
public function getHorizontalBorderChar()
126126
{
127-
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1, use getBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
127+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use getBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
128128

129129
return $this->horizontalOutsideBorderChar;
130130
}
@@ -166,7 +166,7 @@ public function setVerticalBorderChars(string $outside, string $inside = null):
166166
*/
167167
public function setVerticalBorderChar($verticalBorderChar)
168168
{
169-
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1, use setVerticalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
169+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use setVerticalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
170170

171171
return $this->setVerticalBorderChars($verticalBorderChar, $verticalBorderChar);
172172
}
@@ -180,7 +180,7 @@ public function setVerticalBorderChar($verticalBorderChar)
180180
*/
181181
public function getVerticalBorderChar()
182182
{
183-
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1, use getBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
183+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use getBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
184184

185185
return $this->verticalOutsideBorderChar;
186186
}
@@ -268,7 +268,7 @@ public function setDefaultCrossingChar(string $char): self
268268
*/
269269
public function setCrossingChar($crossingChar)
270270
{
271-
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1. Use setDefaultCrossingChar() instead.', __METHOD__), E_USER_DEPRECATED);
271+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1. Use setDefaultCrossingChar() instead.', __METHOD__), E_USER_DEPRECATED);
272272

273273
return $this->setDefaultCrossingChar($crossingChar);
274274
}

0 commit comments

Comments
 (0)