Skip to content

Commit a539ebf

Browse files
authored
Fix Warning on PHP8
PHP8 emits a warning when `final` and `private` are used on the same method. ``` Warning: Private methods cannot be final as they are never overridden by other classes in {file} on line {line} ``` Example: https://3v4l.org/p2Ccp
1 parent 325384e commit a539ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function __construct()
1616
// singleton construct required this method to be protected/private
1717
}
1818

19-
final private function __clone()
19+
final protected function __clone()
2020
{
2121
// singleton construct required this method to be protected/private
2222
}

0 commit comments

Comments
 (0)