Skip to content

Commit

Permalink
MDL-76494 libs: patch Box::Spout for PHP 8.1 - calling basename on null
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Nov 30, 2022
1 parent c1dec1d commit 8bababa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ public function is_readable($fileName)
* @see basename()
*
* @param string $path
* @param string|null $suffix
* @param string $suffix
* @return string
*/
public function basename($path, $suffix = null)
public function basename($path, $suffix = '')
{
return \basename($path, $suffix);
}
Expand Down

0 comments on commit 8bababa

Please sign in to comment.