Skip to content

Commit

Permalink
Merge pull request #327 from Yoast/JRF/yoastcs-docs-improve-register-…
Browse files Browse the repository at this point in the history
…return-tags

Docs: improve `register()` method `@return` tags
  • Loading branch information
jrfnl authored Nov 4, 2023
2 parents b0964f2 + 3b4b564 commit 06cf5d2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class CodeCoverageIgnoreDeprecatedSniff implements Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/Commenting/CoversTagSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class CoversTagSniff implements Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/Commenting/TestsHaveCoversTagSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class TestsHaveCoversTagSniff implements Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/Files/FileNameSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ final class FileNameSniff implements Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [ \T_OPEN_TAG ];
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/Files/TestDoublesSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class TestDoublesSniff implements Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/NamingConventions/NamespaceNameSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ final class NamespaceNameSniff implements Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [ \T_NAMESPACE ];
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/NamingConventions/ObjectNameDepthSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ final class ObjectNameDepthSniff extends WPCS_Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return (int|string)[]
* @return array<int|string>
*/
public function register() {
return [
Expand Down
2 changes: 1 addition & 1 deletion Yoast/Sniffs/Tools/BrainMonkeyRaceConditionSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class BrainMonkeyRaceConditionSniff extends Sniff {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return array
* @return array<int|string>
*/
public function register() {
return [ \T_STRING ];
Expand Down

0 comments on commit 06cf5d2

Please sign in to comment.