Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ee6972

Browse files
minor symfony#4 Mark classes as final (keradus)
This PR was merged into the 1.0-dev branch. Discussion ---------- Mark classes as final Hi! First of all, it is going to be a great lib! Then, about PR - shouldn't internal classes be final where it is possible? Commits ------- ef70c24 Mark internal classes final where possible
2 parents c1f7a4e + ef70c24 commit 6ee6972

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Iconv/Iconv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* @internal
3636
*/
37-
class Iconv
37+
final class Iconv
3838
{
3939
const ERROR_ILLEGAL_CHARACTER = 'iconv(): Detected an illegal character in input string';
4040
const ERROR_WRONG_CHARSET = 'iconv(): Wrong charset, conversion from `%s\' to `%s\' is not allowed';

src/Intl/Grapheme/Grapheme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* @internal
3333
*/
34-
class Grapheme
34+
final class Grapheme
3535
{
3636
// (CRLF|([ZWNJ-ZWJ]|T+|L*(LV?V+|LV|LVT)T*|L+|[^Control])[Extend]*|[Control])
3737
// This regular expression is a work around for http://bugs.exim.org/1279

src/Mbstring/Mbstring.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
*
6161
* @internal
6262
*/
63-
class Mbstring
63+
final class Mbstring
6464
{
6565
const MB_CASE_FOLD = PHP_INT_MAX;
6666

src/Php54/Php54.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*/
19-
class Php54
19+
final class Php54
2020
{
2121
public static function hex2bin($data)
2222
{

src/Php55/Php55.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @internal
1616
*/
17-
class Php55
17+
final class Php55
1818
{
1919
public static function boolval($val)
2020
{

src/Php55/Php55ArrayColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* @internal
2929
*/
30-
class Php55ArrayColumn
30+
final class Php55ArrayColumn
3131
{
3232
public static function array_column(array $input, $columnKey, $indexKey = null)
3333
{

src/Php56/Php56.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* @internal
1818
*/
19-
class Php56
19+
final class Php56
2020
{
2121
const LDAP_ESCAPE_FILTER = 1;
2222
const LDAP_ESCAPE_DN = 2;

src/Php70/Php70.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*/
19-
class Php70
19+
final class Php70
2020
{
2121
public static function intdiv($dividend, $divisor)
2222
{

src/Xml/Xml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*/
19-
class Xml
19+
final class Xml
2020
{
2121
public static function utf8_encode($s)
2222
{

0 commit comments

Comments
 (0)