Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jun 24, 2020
1 parent 828d9de commit d03a53a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TaintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testInvalidCode(string $code, string $error_message)
}

/**
* @return array
* @return array<string, array{string}>
*/
public function providerValidCodeParse()
{
Expand Down Expand Up @@ -422,7 +422,7 @@ public static function slugify(string $url) : string {
}

/**
* @return array
* @return array<string, array{0: string, error_message: string}>
*/
public function providerInvalidCodeParse()
{
Expand Down Expand Up @@ -1217,7 +1217,7 @@ function identity(string $s) : string {
echo identity($_GET[\'userinput\']);',
'error_message' => 'TaintedInput',
],
'namespacedFunction' => [
'print' => [
'<?php
print($_GET["name"]);',
'error_message' => 'TaintedInput - src/somefile.php:2:27 - Detected tainted html in path: $_GET -> $_GET[\'name\'] (src/somefile.php:2:27) -> call to print (src/somefile.php:2:27) -> print#1',
Expand Down

0 comments on commit d03a53a

Please sign in to comment.