You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
w2p_Exception_FileSystem cannot be autoloaded (class name says Exception, folder says Exceptions) #467
classes/w2p/Exceptions/FileSystem.class.php declares class w2p_Exception_FileSystem (L11), singular Exception. web2project_autoload() maps class names to paths by replacing _ with /, so it looks for classes/w2p/Exception/FileSystem.class.php. That file doesn't exist.
Any throw new w2p_Exception_FileSystem(...) or catch (w2p_Exception_FileSystem $e) would therefore fail: an include warning, then Class "w2p_Exception_FileSystem" not found. Nothing references the class today, on dev-5.0.0 or dev-6.0.0, so this is latent. It will bite the first time the file-backend work (#404) or anything else uses it.
Every other class in classes/w2p/Exceptions/ uses the plural, for example w2p_Exceptions_Database.
Fix: rename the class to w2p_Exceptions_FileSystem, and update the docblock on L3. There are no callers to update.
Activity
Rename w2p_Exception_FileSystem to w2p_Exceptions_FileSystem