Issue Bug Closed

#103711formatLogDetailsStatic can throw ValueError/ ArgumentCountError

Thomas Hohn 04/23/24, 11:03 updated 10/15/24, 09:31

Description

The following code can throw an ValueError/ ArgumentCountError if

 if (str_contains($detailString, '%')) {
            $detailString = vsprintf($detailString, $substitutes);
        } elseif ($substitutes !== []) {
..

$substitutes is empty or number of arguments in the $substitutes doesn’t match
the number of %s’s

Reviews 2