Skip to content

Commit

Permalink
Remove usage of GeneralUtility::isFirstPartOfStr() (#42)
Browse files Browse the repository at this point in the history
GeneralUtility::isFirstPartOfStr() was deprecated in https://forge.typo3.org/issues/95257 and removed in https://forge.typo3.org/issues/96107
  • Loading branch information
koehnlein authored Mar 27, 2024
1 parent 6df32d4 commit ddd5b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Driver/StorageDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ public function isWithin($folderIdentifier, $identifier)
return true;
}

return GeneralUtility::isFirstPartOfStr($identifier, $folderIdentifier);
return str_starts_with($identifier, $folderIdentifier);
}

/**
Expand Down

0 comments on commit ddd5b1a

Please sign in to comment.