@@ -656,13 +656,13 @@ public function cleanUp()
656656 /**
657657 * Records an error against a specific token in the file.
658658 *
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?
666666 *
667667 * @return boolean
668668 */
@@ -690,13 +690,13 @@ public function addError(
690690 /**
691691 * Records a warning against a specific token in the file.
692692 *
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?
700700 *
701701 * @return boolean
702702 */
0 commit comments