Skip to content

Commit 80034dd

Browse files
Method getCharset with proper returning type
The method `getCharset` implemented by the example should return `string` type, like the `Symfony\Component\HttpKernel\Kernel` abstract class requires.
1 parent 9a7bb8c commit 80034dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ charset::
3333

3434
class Kernel extends BaseKernel
3535
{
36-
public function getCharset()
36+
public function getCharset(): string
3737
{
3838
return 'ISO-8859-1';
3939
}

0 commit comments

Comments
 (0)