BUGFIX: Fix visibility of method

* Only this way we can overwrite the content and provide the more
  specific class name replacement.
This commit is contained in:
Daniel Siepmann 2017-03-14 10:01:46 +01:00
parent 1eb52ff975
commit cec410eabe
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ trait ClassnameCheckerTrait
* @param string $classname
* @return string
*/
private function getTokenForReplacement($classname)
protected function getTokenForReplacement($classname)
{
return $classname;
}

View file

@ -83,7 +83,7 @@ class Typo3Update_Sniffs_LegacyClassnames_DocCommentSniff implements PHP_CodeSni
* @param string $classname
* @return string
*/
public function getTokenForReplacement($classname)
protected function getTokenForReplacement($classname)
{
$token = explode(' ', $this->originalTokenContent);
$token[0] = $classname;