Skip to content

Commit e82c8a1

Browse files
committed
CS: miscellaneous other fixes
1 parent 724e36f commit e82c8a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ protected function checkInheritdoc(File $phpcsFile, $stackPtr, $commentStart)
781781
T_DOC_COMMENT_STAR,
782782
];
783783
for ($i = $commentStart; $i <= $tokens[$commentStart]['comment_closer']; $i++) {
784-
if (in_array($tokens[$i]['code'], $allowedTokens) === false) {
784+
if (in_array($tokens[$i]['code'], $allowedTokens, true) === false) {
785785
$trimmedContent = strtolower(trim($tokens[$i]['content']));
786786

787787
if ($trimmedContent === '{@inheritdoc}') {

src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function process(File $phpcsFile, $stackPtr)
6868
$prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
6969

7070
// Allow for PHP 8.4+ fully qualified use of exit/die.
71-
if ($tokens[$stackPtr]['code'] === \T_EXIT && $tokens[$prev]['code'] === \T_NS_SEPARATOR) {
71+
if ($tokens[$stackPtr]['code'] === T_EXIT && $tokens[$prev]['code'] === T_NS_SEPARATOR) {
7272
$prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($prev - 1), null, true);
7373
}
7474

0 commit comments

Comments
 (0)