Skip to content

Commit fb23527

Browse files
committed
4.0 | Standards/Zend: add parameter types to sniffs
1 parent b52d312 commit fb23527

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Standards/Zend/Sniffs/Files/ClosingTagSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function register()
3838
*
3939
* @return int
4040
*/
41-
public function process(File $phpcsFile, $stackPtr)
41+
public function process(File $phpcsFile, int $stackPtr)
4242
{
4343
// Find the last non-empty token.
4444
$tokens = $phpcsFile->getTokens();

src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ValidVariableNameSniff extends AbstractVariableSniff
2828
*
2929
* @return void
3030
*/
31-
protected function processVariable(File $phpcsFile, $stackPtr)
31+
protected function processVariable(File $phpcsFile, int $stackPtr)
3232
{
3333
$tokens = $phpcsFile->getTokens();
3434
$varName = ltrim($tokens[$stackPtr]['content'], '$');
@@ -113,7 +113,7 @@ protected function processVariable(File $phpcsFile, $stackPtr)
113113
*
114114
* @return void
115115
*/
116-
protected function processMemberVar(File $phpcsFile, $stackPtr)
116+
protected function processMemberVar(File $phpcsFile, int $stackPtr)
117117
{
118118
try {
119119
$memberProps = $phpcsFile->getMemberProperties($stackPtr);
@@ -169,7 +169,7 @@ protected function processMemberVar(File $phpcsFile, $stackPtr)
169169
*
170170
* @return void
171171
*/
172-
protected function processVariableInString(File $phpcsFile, $stackPtr)
172+
protected function processVariableInString(File $phpcsFile, int $stackPtr)
173173
{
174174
$tokens = $phpcsFile->getTokens();
175175

0 commit comments

Comments
 (0)