Skip to content

Commit 83a4b58

Browse files
committed
minor symfony#17244 Method getCharset with proper returning type (githubfromgui)
This PR was merged into the 4.4 branch. Discussion ---------- 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: ![image](https://user-images.githubusercontent.com/5428251/187910885-5a1fbde9-69c3-4c5e-88fd-d08958bfbd72.png) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 80034dd Method getCharset with proper returning type
2 parents 9a7bb8c + 80034dd commit 83a4b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/kernel.rst

+1-1
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)