Skip to content

[CLEANUP] Rector: Add missing return type declaration based on parent class method #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/CSSList/AtRuleBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ public function atRuleArgs()
return $this->sArgs;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/CSSList/CSSList.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,7 @@ public function removeDeclarationBlockBySelector($mSelector, $bRemoveAll = false
}
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/CSSList/KeyFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ public function getAnimationName()
return $this->animationName;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Comment/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public function setComment($sComment): void
$this->sComment = $sComment;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Property/CSSNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public function getLineNo()
return $this->iLineNo;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Property/Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ public function getCharset()
return $this->oCharset->getString();
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Property/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ public function getLocation()
return $this->oLocation;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Property/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ public function setSelector($sSelector): void
$this->iSpecificity = null;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->getSelector();
}
Expand Down
5 changes: 1 addition & 4 deletions src/Rule/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,7 @@ public function getIsImportant()
return $this->bIsImportant;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/RuleSet/AtRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public function atRuleArgs()
return $this->sArgs;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,11 +775,9 @@ public function createFontShorthand(): void
}

/**
* @return string
*
* @throws OutputException
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/RuleSet/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,7 @@ public function removeRule($mRule): void
}
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/CSSFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ public function getArguments()
return $this->aComponents;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/CSSString.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ public function getString()
return $this->sString;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ public function getColorDescription()
return $this->getName();
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/LineName.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ public static function parse(ParserState $oParserState): LineName
return new LineName($aNames, $oParserState->currentLine());
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,7 @@ public function isRelative(): bool
return false;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ public function getURL()
return $this->oURL;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down
5 changes: 1 addition & 4 deletions src/Value/ValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ public function setListSeparator($sSeparator): void
$this->sSeparator = $sSeparator;
}

/**
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->render(new OutputFormat());
}
Expand Down