Problem Statement
Several naming inconsistencies exist:
$extentions property in FileUploader is a typo — should be $extensions
setDir() vs deprecated setPath() — setPath() is still used internally in the constructor
- Method naming is inconsistent:
addExt() / addExts() / removeExt() vs getExts()
Proposed Solution
- Rename
$extentions to $extensions
- Remove internal usage of deprecated
setPath(), use setDir() consistently
- Consider renaming
getExts() to getExtensions() (with getExts() as deprecated alias)
Alternatives Considered
- Keeping the typo for backward compatibility (not worth it for a private property)
Breaking Change
No — $extentions is private. Method renames would need deprecation aliases.
Problem Statement
Several naming inconsistencies exist:
$extentionsproperty inFileUploaderis a typo — should be$extensionssetDir()vs deprecatedsetPath()—setPath()is still used internally in the constructoraddExt()/addExts()/removeExt()vsgetExts()Proposed Solution
$extentionsto$extensionssetPath(), usesetDir()consistentlygetExts()togetExtensions()(withgetExts()as deprecated alias)Alternatives Considered
Breaking Change
No —
$extentionsis private. Method renames would need deprecation aliases.