Skip to content

Commit c981ac2

Browse files
committed
bug #869 [make:serializer:encoder] set public constant visibility modifier (jrushlow)
This PR was merged into the 1.0-dev branch. Discussion ---------- [make:serializer:encoder] set public constant visibility modifier Since PHP 7.1 - class constants can have a visibility modifier. The Symfony coding standards require the visibility modifier to be set. `make:serializer:encoder` now defaults to the `public` modifier for the `FORMAT` const. Commits ------- 82a5ca2 [make:serializer:encoder] set public constant visibility modifier
2 parents c6330a3 + 82a5ca2 commit c981ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/serializer/Encoder.tpl.php

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

88
class <?= $class_name ?> implements EncoderInterface, DecoderInterface
99
{
10-
const FORMAT = '<?= $format ?>';
10+
public const FORMAT = '<?= $format ?>';
1111

1212
public function encode($data, $format, array $context = [])
1313
{

0 commit comments

Comments
 (0)