Skip to content

Commit 6552eb0

Browse files
committed
minor #2772 [Map] Add return type to __toString() (dannyvw)
This PR was merged into the 2.x branch. Discussion ---------- [Map] Add return type to __toString() | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- dcd2426 [Map] Add return type to __toString()
2 parents 3221c18 + dcd2426 commit 6552eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Map/src/Renderer/Renderers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function renderMap(Map $map, array $attributes = []): string
5757
return $renderer->renderMap($map, $attributes);
5858
}
5959

60-
public function __toString()
60+
public function __toString(): string
6161
{
6262
return implode(', ', array_keys($this->renderers));
6363
}

0 commit comments

Comments
 (0)