You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/Helper.php
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -42,18 +42,20 @@ public function getHelperSet()
42
42
/**
43
43
* Returns the length of a string, using mb_strwidth if it is available.
44
44
*
45
+
* @deprecated since 5.3
46
+
*
45
47
* @return int The length of the string
46
48
*/
47
49
publicstaticfunctionstrlen(?string$string)
48
50
{
51
+
trigger_deprecation('symfony/console', '5.3', 'Method "%s()" is deprecated and will be removed in Symfony 6.0. Use Helper::width() or Helper::length() instead.', __METHOD__);
52
+
49
53
returnself::width($string);
50
54
}
51
55
52
56
/**
53
57
* Returns the width of a string, using mb_strwidth if it is available.
54
58
* The width is how many characters positions the string will use.
55
-
*
56
-
* @internal in Symfony 5.2
57
59
*/
58
60
publicstaticfunctionwidth(?string$string): int
59
61
{
@@ -73,8 +75,6 @@ public static function width(?string $string): int
73
75
/**
74
76
* Returns the length of a string, using mb_strlen if it is available.
75
77
* The length is related to how many bytes the string will use.
76
-
*
77
-
* @
D306
internal in Symfony 5.2
78
78
*/
79
79
publicstaticfunctionlength(?string$string): int
80
80
{
@@ -153,8 +153,13 @@ public static function formatMemory(int $memory)
trigger_deprecation('symfony/console', '5.3', 'Method "%s()" is deprecated and will be removed in Symfony 6.0. Use Helper::removeDecoration() instead.', __METHOD__);
0 commit comments