Skip to content

Commit

Permalink
UtilityMethodTestCase::parseFile(): add missing type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed May 26, 2024
1 parent 85846f2 commit 6b9ea39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PHPCSUtils/TestUtils/UtilityMethodTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace PHPCSUtils\TestUtils;

use PHP_CodeSniffer\Config;
use PHP_CodeSniffer\Exceptions\TokenizerException;
use PHP_CodeSniffer\Files\DummyFile;
use PHP_CodeSniffer\Files\File;
Expand Down Expand Up @@ -239,7 +240,7 @@ public static function setUpTestFile()
*
* @return \PHP_CodeSniffer\Files\File
*/
protected static function parseFile($caseFile, $ruleset, $config)
protected static function parseFile($caseFile, Ruleset $ruleset, Config $config)
{
if (\is_readable($caseFile) === false) {
parent::fail("Test case file missing. Expected case file location: $caseFile");
Expand Down

0 comments on commit 6b9ea39

Please sign in to comment.