Skip to content

Commit 4a027c0

Browse files
GrahamCampbellkeradus
authored andcommitted
Corrected method visibility
1 parent f3baf72 commit 4a027c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Fixer/Alias/NoMixedEchoPrintFixer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ public function isCandidate(Tokens $tokens)
7979
/**
8080
* {@inheritdoc}
8181
*/
82-
public function getDescription()
82+
public function getPriority()
8383
{
84-
return 'Either language construct `print` or `echo` should be used.';
84+
// should run after NoShortEchoTagFixer.
85+
return -10;
8586
}
8687

8788
/**
8889
* {@inheritdoc}
8990
*/
90-
public function getPriority()
91+
protected function getDescription()
9192
{
92-
// should run after NoShortEchoTagFixer.
93-
return -10;
93+
return 'Either language construct `print` or `echo` should be used.';
9494
}
9595

9696
/**

src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens)
194194
/**
195195
* {@inheritdoc}
196196
*/
197-
public function getDescription()
197+
protected function getDescription()
198198
{
199199
return 'Phpdoc should contain @param for all params.';
200200
}

0 commit comments

Comments
 (0)