Skip to content

Commit d7c6181

Browse files
authored
[TASK] Add native return type for render* methods (#1166)
Part of #811
1 parent c226c04 commit d7c6181

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Please also have a look at our
3434
- Use more native type declarations and strict mode
3535
(#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958,
3636
#964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140, #1141, #1145,
37-
#1162, #1163)
37+
#1162, #1163, #1166)
3838
- Add visibility to all class/interface constants (#469)
3939

4040
### Deprecated

src/CSSList/CSSList.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,7 @@ public function __toString(): string
408408
return $this->render(new OutputFormat());
409409
}
410410

411-
/**
412-
* @return string
413-
*/
414-
protected function renderListContents(OutputFormat $outputFormat)
411+
protected function renderListContents(OutputFormat $outputFormat): string
415412
{
416413
$result = '';
417414
$isFirst = true;

src/RuleSet/RuleSet.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,7 @@ public function __toString(): string
269269
return $this->render(new OutputFormat());
270270
}
271271

272-
/**
273-
* @return string
274-
*/
275-
protected function renderRules(OutputFormat $outputFormat)
272+
protected function renderRules(OutputFormat $outputFormat): string
276273
{
277274
$result = '';
278275
$isFirst = true;

0 commit comments

Comments
 (0)