Skip to content

Commit

Permalink
Improve Tokens stubs with constants (#4594)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 25, 2023
1 parent 031f2de commit 20d8c79
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion stubs/PhpCsFixer/Tokenizer/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,17 @@

final class Tokens extends \SplFixedArray
{

public const BLOCK_TYPE_PARENTHESIS_BRACE = 1;
public const BLOCK_TYPE_CURLY_BRACE = 2;
public const BLOCK_TYPE_INDEX_SQUARE_BRACE = 3;
public const BLOCK_TYPE_ARRAY_SQUARE_BRACE = 4;
public const BLOCK_TYPE_DYNAMIC_PROP_BRACE = 5;
public const BLOCK_TYPE_DYNAMIC_VAR_BRACE = 6;
public const BLOCK_TYPE_ARRAY_INDEX_CURLY_BRACE = 7;
public const BLOCK_TYPE_GROUP_IMPORT_BRACE = 8;
public const BLOCK_TYPE_DESTRUCTURING_SQUARE_BRACE = 9;
public const BLOCK_TYPE_BRACE_CLASS_INSTANTIATION = 10;
public const BLOCK_TYPE_ATTRIBUTE = 11;
public const BLOCK_TYPE_DISJUNCTIVE_NORMAL_FORM_TYPE_PARENTHESIS = 12;
public const BLOCK_TYPE_DYNAMIC_CLASS_CONSTANT_FETCH_CURLY_BRACE = 13;
}

0 comments on commit 20d8c79

Please sign in to comment.