Skip to content

Commit

Permalink
Updated annotations [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Jan 31, 2022
1 parent b4e900d commit 69d5d1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Escaper.php
Expand Up @@ -10,12 +10,12 @@
class Escaper
{
/**
* @var array Characters to escape in a character class
* @var array<string> Characters to escape in a character class
*/
public $inCharacterClass = ['-' => '\\-', '\\' => '\\\\', ']' => '\\]', '^' => '\\^'];

/**
* @var array Characters to escape outside of a character class
* @var array<string> Characters to escape outside of a character class
*/
public $inLiteral = [
'$' => '\\$', '(' => '\\(', ')' => '\\)', '*' => '\\*',
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/AbstractPass.php
Expand Up @@ -108,7 +108,7 @@ protected function isCharacterClassString(array $string): bool
/**
* Test whether given string contains one single element that is an alternation
*
* @param array
* @param array $string
* @return bool
*/
protected function isSingleAlternationString(array $string): bool
Expand Down
4 changes: 2 additions & 2 deletions src/Serializer.php
Expand Up @@ -102,8 +102,8 @@ protected function analyzeStrings(array $strings): array
/**
* Return the portion of strings that are composed of a single character
*
* @param array[]
* @return array String key => value
* @param array<int, array> $strings
* @return array<int, int> String key => value
*/
protected function getChars(array $strings): array
{
Expand Down

0 comments on commit 69d5d1a

Please sign in to comment.