Skip to content

Commit

Permalink
Rename legacy generics to phpstorm generics to match psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Jul 4, 2022
1 parent e281a50 commit c368beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CakePHP/Sniffs/Commenting/TypeHintSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TypeHintSniff implements Sniff
*
* @var bool
*/
public bool $ignoreLegacyGenerics = false;
public bool $ignorePhpStormGenerics = false;

/**
* @var array<string>
Expand Down Expand Up @@ -109,7 +109,7 @@ public function process(File $phpcsFile, $stackPtr)
continue;
}

if ($this->ignoreLegacyGenerics && $this->isLegacyGenericType($types)) {
if ($this->ignorePhpStormGenerics && $this->isPhpStormGenericType($types)) {
continue;
}

Expand Down Expand Up @@ -167,7 +167,7 @@ public function process(File $phpcsFile, $stackPtr)
* @param array $types node types
* @return bool
*/
protected function isLegacyGenericType(array $types): bool
protected function isPhpStormGenericType(array $types): bool
{
if (count($types) != 2) {
return false;
Expand Down

0 comments on commit c368beb

Please sign in to comment.