Skip to content

Commit

Permalink
Add comment in test to prevent php8.1 compat issue
Browse files Browse the repository at this point in the history
Without a comment pdepend will raise an error.
```
preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated
```
  • Loading branch information
siad007 authored Mar 31, 2021
1 parent 8212a11 commit 436ce79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/etc/tasks/ext/pdepend/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

class Test
{
public function test($a = 0)
/**
* @param int $a
*/
public function testing($a = 0)
{
echo "Hello World";
}
Expand Down

0 comments on commit 436ce79

Please sign in to comment.