Skip to content

Commit

Permalink
Remove double newlines from test file, not needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Dec 22, 2023
1 parent 9118889 commit 9e710ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion tests/Calls/FunctionCallsAllowInFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testRule(): void
// expect this error message:
'Calling sha1() is forbidden. [sha1() matches sha*()]',
// on this line:
15,
14,
],
]);
}
Expand Down
7 changes: 0 additions & 7 deletions tests/src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,31 @@ function quux(): void
$bar = sha1('bar');
}


function fred(): void
{
$foo = sha1('foo');
}


function foo(string $name, string $value = '', int $expires = 0, string $path = ''): bool
{
}


function bar(string $name = '', string $value = '', int $expires = 0, string $path = ''): bool
{
}


function baz(string $name = '', string $value = '', int $expires = 0, string $path = ''): bool
{
}


function waldo(string $name = '', string $value = '', int $expires = 0, string $path = ''): bool
{
}


function mocky(string $className): void
{
}


/**
* @param array|string|null $key
*/
Expand Down

0 comments on commit 9e710ee

Please sign in to comment.