Skip to content

Commit 66c2064

Browse files
authored
Merge pull request #1038 from PHPCSStandards/phpcs-4.0/feature/various-doc-fixes
Tokens: fix docblocks
2 parents caff6d3 + 3dc5c94 commit 66c2064

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

src/Util/Tokens.php

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -671,144 +671,144 @@ final class Tokens
671671
/**
672672
* The token weightings.
673673
*
674-
* @deprecated 4.0 Use the Tokens::getHighestWeightedToken() method instead.
675-
*
676674
* @var array<int|string, int>
675+
*
676+
* @deprecated 4.0.0 Use the Tokens::getHighestWeightedToken() method instead.
677677
*/
678678
public static $weightings = self::WEIGHTINGS;
679679

680680
/**
681681
* Tokens that represent assignments.
682682
*
683-
* @deprecated 4.0 Use the Tokens::ASSIGNMENT_TOKENS constant instead.
684-
*
685683
* @var array<int|string, int|string>
684+
*
685+
* @deprecated 4.0.0 Use the Tokens::ASSIGNMENT_TOKENS constant instead.
686686
*/
687687
public static $assignmentTokens = self::ASSIGNMENT_TOKENS;
688688

689689
/**
690690
* Tokens that represent equality comparisons.
691691
*
692-
* @deprecated 4.0 Use the Tokens::EQUALITY_TOKENS constant instead.
693-
*
694692
* @var array<int|string, int|string>
693+
*
694+
* @deprecated 4.0.0 Use the Tokens::EQUALITY_TOKENS constant instead.
695695
*/
696696
public static $equalityTokens = self::EQUALITY_TOKENS;
697697

698698
/**
699699
* Tokens that represent comparison operator.
700700
*
701-
* @deprecated 4.0 Use the Tokens::COMPARISON_TOKENS constant instead.
702-
*
703701
* @var array<int|string, int|string>
702+
*
703+
* @deprecated 4.0.0 Use the Tokens::COMPARISON_TOKENS constant instead.
704704
*/
705705
public static $comparisonTokens = self::COMPARISON_TOKENS;
706706

707707
/**
708708
* Tokens that represent arithmetic operators.
709709
*
710-
* @deprecated 4.0 Use the Tokens::ARITHMETIC_TOKENS constant instead.
711-
*
712710
* @var array<int|string, int|string>
711+
*
712+
* @deprecated 4.0.0 Use the Tokens::ARITHMETIC_TOKENS constant instead.
713713
*/
714714
public static $arithmeticTokens = self::ARITHMETIC_TOKENS;
715715

716716
/**
717717
* Tokens that perform operations.
718718
*
719-
* @deprecated 4.0 Use the Tokens::OPERATORS constant instead.
720-
*
721719
* @var array<int|string, int|string>
720+
*
721+
* @deprecated 4.0.0 Use the Tokens::OPERATORS constant instead.
722722
*/
723723
public static $operators = self::OPERATORS;
724724

725725
/**
726726
* Tokens that perform boolean operations.
727727
*
728-
* @deprecated 4.0 Use the Tokens::BOOLEAN_OPERATORS constant instead.
729-
*
730728
* @var array<int|string, int|string>
729+
*
730+
* @deprecated 4.0.0 Use the Tokens::BOOLEAN_OPERATORS constant instead.
731731
*/
732732
public static $booleanOperators = self::BOOLEAN_OPERATORS;
733733

734734
/**
735735
* Tokens that represent casting.
736736
*
737-
* @deprecated 4.0 Use the Tokens::CAST_TOKENS constant instead.
738-
*
739737
* @var array<int|string, int|string>
738+
*
739+
* @deprecated 4.0.0 Use the Tokens::CAST_TOKENS constant instead.
740740
*/
741741
public static $castTokens = self::CAST_TOKENS;
742742

743743
/**
744744
* Token types that open parenthesis.
745745
*
746-
* @deprecated 4.0 Use the Tokens::PARENTHESIS_OPENERS constant instead.
747-
*
748746
* @var array<int|string, int|string>
747+
*
748+
* @deprecated 4.0.0 Use the Tokens::PARENTHESIS_OPENERS constant instead.
749749
*/
750750
public static $parenthesisOpeners = self::PARENTHESIS_OPENERS;
751751

752752
/**
753753
* Tokens that are allowed to open scopes.
754754
*
755-
* @deprecated 4.0 Use the Tokens::SCOPE_OPENERS constant instead.
756-
*
757755
* @var array<int|string, int|string>
756+
*
757+
* @deprecated 4.0.0 Use the Tokens::SCOPE_OPENERS constant instead.
758758
*/
759759
public static $scopeOpeners = self::SCOPE_OPENERS;
760760

761761
/**
762762
* Tokens that represent scope modifiers.
763763
*
764-
* @deprecated 4.0 Use the Tokens::SCOPE_MODIFIERS constant instead.
765-
*
766764
* @var array<int|string, int|string>
765+
*
766+
* @deprecated 4.0.0 Use the Tokens::SCOPE_MODIFIERS constant instead.
767767
*/
768768
public static $scopeModifiers = self::SCOPE_MODIFIERS;
769769

770770
/**
771771
* Tokens that can prefix a method name
772772
*
773-
* @deprecated 4.0 Use the Tokens::METHOD_MODIFIERS constant instead.
774-
*
775773
* @var array<int|string, int|string>
774+
*
775+
* @deprecated 4.0.0 Use the Tokens::METHOD_MODIFIERS constant instead.
776776
*/
777777
public static $methodPrefixes = self::METHOD_MODIFIERS;
778778

779779
/**
780780
* Tokens that open code blocks.
781781
*
782-
* @deprecated 4.0 Use the Tokens::BLOCK_OPENERS constant instead.
783-
*
784782
* @var array<int|string, int|string>
783+
*
784+
* @deprecated 4.0.0 Use the Tokens::BLOCK_OPENERS constant instead.
785785
*/
786786
public static $blockOpeners = self::BLOCK_OPENERS;
787787

788788
/**
789789
* Tokens that don't represent code.
790790
*
791-
* @deprecated 4.0 Use the Tokens::EMPTY_TOKENS constant instead.
792-
*
793791
* @var array<int|string, int|string>
792+
*
793+
* @deprecated 4.0.0 Use the Tokens::EMPTY_TOKENS constant instead.
794794
*/
795795
public static $emptyTokens = self::EMPTY_TOKENS;
796796

797797
/**
798798
* Tokens that are comments.
799799
*
800-
* @deprecated 4.0 Use the Tokens::COMMENT_TOKENS constant instead.
801-
*
802800
* @var array<int|string, int|string>
801+
*
802+
* @deprecated 4.0.0 Use the Tokens::COMMENT_TOKENS constant instead.
803803
*/
804804
public static $commentTokens = self::COMMENT_TOKENS;
805805

806806
/**
807807
* Tokens that are comments containing PHPCS instructions.
808808
*
809-
* @deprecated 4.0 Use the Tokens::PHPCS_ANNOTATION_TOKENS constant instead.
810-
*
811809
* @var array<int|string, int|string>
810+
*
811+
* @deprecated 4.0.0 Use the Tokens::PHPCS_ANNOTATION_TOKENS constant instead.
812812
*/
813813
public static $phpcsCommentTokens = self::PHPCS_ANNOTATION_TOKENS;
814814

@@ -817,45 +817,45 @@ final class Tokens
817817
*
818818
* Note that T_STRINGS are NOT represented in this list.
819819
*
820-
* @deprecated 4.0 Use the Tokens::STRING_TOKENS constant instead.
821-
*
822820
* @var array<int|string, int|string>
821+
*
822+
* @deprecated 4.0.0 Use the Tokens::STRING_TOKENS constant instead.
823823
*/
824824
public static $stringTokens = self::STRING_TOKENS;
825825

826826
/**
827827
* Tokens that represent text strings.
828828
*
829-
* @deprecated 4.0 Use the Tokens::TEXT_STRINGS constant instead.
830-
*
831829
* @var array<int|string, int|string>
830+
*
831+
* @deprecated 4.0.0 Use the Tokens::TEXT_STRINGS constant instead.
832832
*/
833833
public static $textStringTokens = self::TEXT_STRING_TOKENS;
834834

835835
/**
836836
* Tokens that represent brackets and parenthesis.
837837
*
838-
* @deprecated 4.0 Use the Tokens::BRACKET_TOKENS constant instead.
839-
*
840838
* @var array<int|string, int|string>
839+
*
840+
* @deprecated 4.0.0 Use the Tokens::BRACKET_TOKENS constant instead.
841841
*/
842842
public static $bracketTokens = self::BRACKET_TOKENS;
843843

844844
/**
845845
* Tokens that include files.
846846
*
847-
* @deprecated 4.0 Use the Tokens::INCLUDE_TOKENS constant instead.
848-
*
849847
* @var array<int|string, int|string>
848+
*
849+
* @deprecated 4.0.0 Use the Tokens::INCLUDE_TOKENS constant instead.
850850
*/
851851
public static $includeTokens = self::INCLUDE_TOKENS;
852852

853853
/**
854854
* Tokens that make up a heredoc string.
855855
*
856-
* @deprecated 4.0 Use the Tokens::HEREDOC_TOKENS constant instead.
857-
*
858856
* @var array<int|string, int|string>
857+
*
858+
* @deprecated 4.0.0 Use the Tokens::HEREDOC_TOKENS constant instead.
859859
*/
860860
public static $heredocTokens = self::HEREDOC_TOKENS;
861861

@@ -865,40 +865,40 @@ final class Tokens
865865
* Mostly, these are just strings. But PHP tokenizes some language
866866
* constructs and functions using their own tokens.
867867
*
868-
* @deprecated 4.0 Use the Tokens::FUNCTION_NAME_TOKENS constant instead.
869-
*
870868
* @var array<int|string, int|string>
869+
*
870+
* @deprecated 4.0.0 Use the Tokens::FUNCTION_NAME_TOKENS constant instead.
871871
*/
872872
public static $functionNameTokens = self::FUNCTION_NAME_TOKENS;
873873

874874
/**
875875
* Tokens that open class and object scopes.
876876
*
877-
* @deprecated 4.0 Use the Tokens::OO_SCOPE_TOKENS constant instead.
878-
*
879877
* @var array<int|string, int|string>
878+
*
879+
* @deprecated 4.0.0 Use the Tokens::OO_SCOPE_TOKENS constant instead.
880880
*/
881881
public static $ooScopeTokens = self::OO_SCOPE_TOKENS;
882882

883883
/**
884884
* Tokens representing PHP magic constants.
885885
*
886-
* @deprecated 4.0 Use the Tokens::MAGIC_CONSTANTS constant instead.
887-
*
888886
* @var array <int|string> => <int|string>
889887
*
890888
* @link https://www.php.net/language.constants.predefined PHP Manual on magic constants
889+
*
890+
* @deprecated 4.0.0 Use the Tokens::MAGIC_CONSTANTS constant instead.
891891
*/
892892
public static $magicConstants = self::MAGIC_CONSTANTS;
893893

894894
/**
895895
* Tokens representing context sensitive keywords in PHP.
896896
*
897-
* @deprecated 4.0 Use the Tokens::CONTEXT_SENSITIVE_KEYWORDS constant instead.
898-
*
899897
* @var array<int|string, int|string>
900898
*
901899
* @link https://wiki.php.net/rfc/context_sensitive_lexer
900+
*
901+
* @deprecated 4.0.0 Use the Tokens::CONTEXT_SENSITIVE_KEYWORDS constant instead.
902902
*/
903903
public static $contextSensitiveKeywords = self::CONTEXT_SENSITIVE_KEYWORDS;
904904

0 commit comments

Comments
 (0)