Skip to content

Commit

Permalink
Replace multiple possible datatypes with mixed one.
Browse files Browse the repository at this point in the history
This tries to resolve the following error in CI:
[ERROR] syntax error, unexpected '|', expecting variable (T_VARIABLE)
  • Loading branch information
tormi committed May 25, 2021
1 parent d179435 commit 8658c52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/modules/custom/phpunit_example/src/AddClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class AddClass {
/**
* A simple addition method with validity checking.
*
* @param int|float $a
* @param mixed $a
* A number to add.
* @param int|float $b
* @param mixed $b
* Another number to add.
*
* @return int|float
* @return mixed
* The sum of $a and $b.
*
* @throws \InvalidArgumentException
Expand Down

0 comments on commit 8658c52

Please sign in to comment.