#95149ExistingTargetFileNameException is never thrown in TYPO3\CMS\Core\Resource\ResourceStorage::sanitizeFileName()
Description
PHPDoc mentions two Exceptions which are never thrown in code and misses the only exception which may actually be thrown in LocalDriver: InvalidFileNameException
/**
* Clean a fileName from not allowed characters
*
* @param string $fileName The name of the file to be add, If not set, the local file name is used
* @param Folder $targetFolder The target folder where the file should be added
*
* @throws \InvalidArgumentException
* @throws Exception\ExistingTargetFileNameException
* @return string
*/
public function sanitizeFileName($fileName, Folder $targetFolder = null)
{Reviews 2
History 25
-
Gerrit Code Review pushed patch set 1 for master to change 70970 status
In ProgressUnder Review 09/08/21, 14:38 -
Gerrit Code Review pushed patch set 2 for master to change 70970 10/11/21, 10:18
-
Gerrit Code Review pushed patch set 1 for 10.4 to change 71572 10/12/21, 10:33
-
Stephan Großberndt commented and changed status
Under ReviewResolved done0 %100 % 10/12/21, 10:35 -
Benni Mack changed status
ResolvedClosed 10/04/22, 14:12
Applied in changeset commit:80fa617487337a55562b96b6f7e816f5984f03b4.