Skip to content

Commit 6343055

Browse files
authored
[PHP 8.0] Invoke.php: fix deprecation notices for optional function parameters declared before required parameter (#48)
1 parent 76defd2 commit 6343055

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Invoke.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* @return mixed
1616
*/
17-
function ifCondition(callable $callable, $methodArguments = [], $condition)
17+
function ifCondition(callable $callable, $methodArguments = [], $condition = false)
1818
{
1919
if (true === $condition) {
2020
return call_user_func_array(

0 commit comments

Comments
 (0)