- Removed E_STRICT error type, added some more content to skeleton and removed 'methods' of route attributes (replaced with 'method')

This commit is contained in:
mcndave authored and Dave Mc Nicoll committed 2026-10-19 19:52:24 +00:00
1 parent 79287f28cc
commit 7a292fe373
6 files changed
+38 -14

No files matched your search

+14
View File
@@ -58,4 +58,18 @@ class File
return $path;
}
public static function assertFileExists(string $filepath) : void
{
if (! is_file($filepath)) {
throw new \InvalidArgumentException("File does not exist: {$filepath}");
}
}
public static function assertFolderExists(string $path) : void
{
if (! is_dir($path)) {
throw new \InvalidArgumentException("Folder does not exist: {$path}");
}
}
}