Skip to content

Commit

Permalink
fix Error PHP8.1 Azure Storage Azure#3
Browse files Browse the repository at this point in the history
fix issue Azure#3
  • Loading branch information
Eike Sibbers committed May 23, 2023
1 parent 78e21f6 commit d5903d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Common/Internal/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,8 @@ public static function createInstanceList(array $parsed, $class)
*/
public static function endsWith($haystack, $needle, $ignoreCase = false)
{
$haystack = (string) $haystack;

if ($ignoreCase) {
$haystack = strtolower($haystack);
$needle = strtolower($needle);
Expand Down

0 comments on commit d5903d3

Please sign in to comment.