@@ -656,13 +656,13 @@ public function cleanUp()
656
656
/**
657
657
* Records an error against a specific token in the file.
658
658
*
659
- * @param string $error The error message.
660
- * @param int $stackPtr The stack position where the error occurred.
661
- * @param string $code A violation code unique to the sniff message.
662
- * @param array $data Replacements for the error message.
663
- * @param int $severity The severity level for this error. A value of 0
664
- * will be converted into the default severity level.
665
- * @param boolean $fixable Can the error be fixed by the sniff?
659
+ * @param string $error The error message.
660
+ * @param int|null $stackPtr The stack position where the error occurred.
661
+ * @param string $code A violation code unique to the sniff message.
662
+ * @param array $data Replacements for the error message.
663
+ * @param int $severity The severity level for this error. A value of 0
664
+ * will be converted into the default severity level.
665
+ * @param boolean $fixable Can the error be fixed by the sniff?
666
666
*
667
667
* @return boolean
668
668
*/
@@ -690,13 +690,13 @@ public function addError(
690
690
/**
691
691
* Records a warning against a specific token in the file.
692
692
*
693
- * @param string $warning The error message.
694
- * @param int $stackPtr The stack position where the error occurred.
695
- * @param string $code A violation code unique to the sniff message.
696
- * @param array $data Replacements for the warning message.
697
- * @param int $severity The severity level for this warning. A value of 0
698
- * will be converted into the default severity level.
699
- * @param boolean $fixable Can the warning be fixed by the sniff?
693
+ * @param string $warning The error message.
694
+ * @param int|null $stackPtr The stack position where the error occurred.
695
+ * @param string $code A violation code unique to the sniff message.
696
+ * @param array $data Replacements for the warning message.
697
+ * @param int $severity The severity level for this warning. A value of 0
698
+ * will be converted into the default severity level.
699
+ * @param boolean $fixable Can the warning be fixed by the sniff?
700
700
*
701
701
* @return boolean
702
702
*/
0 commit comments