8000 Make non-instantiable utils classes consistent with each other · lanthaler/symfony@07bd5c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07bd5c6

Browse files
inoryyfabpot
authored andcommitted
Make non-instantiable utils classes consistent with each other
1 parent f61457d commit 07bd5c6

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

src/Symfony/Component/Form/Util/FormUtil.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Bernhard Schussek <bschussek@gmail.com>
1616
*/
17-
abstract class FormUtil
17+
class FormUtil
1818
{
1919
/**
2020
* Map english plural to singular suffixes
@@ -97,6 +97,11 @@ abstract class FormUtil
9797
array('xuae', 4, false, true, 'eau'),
9898
);
9999

100+
/**
101+
* This class should not be instantiated
102+
*/
103+
private function __construct() {}
104+
100105
/**
101106
* Returns the singular form of a word
102107
*

src/Symfony/Component/Security/Core/Util/ClassUtils.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ class ClassUtils
3636
*/
3737
const MARKER_LENGTH = 6;
3838

39+
/**
40+
* This class should not be instantiated
41+
*/
42+
private function __construct() {}
43+
3944
/**
4045
* Gets the real class name of a class name that could be a proxy.
4146
*

src/Symfony/Component/Security/Core/Util/StringUtils.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
*
1717
* @author Fabien Potencier <fabien@symfony.com>
1818
*/
19-
final class StringUtils
19+
class StringUtils
2020
{
21-
final private function __construct()
22-
{
23-
}
21+
/**
22+
* This class should not be instantiated
23+
*/
24+
private function __construct() {}
2425

2526
/**
2627
* Compares two strings.

0 commit comments

Comments
 (0)
0