Skip to content

Commit 98ee5d4

Browse files
doc: add exception to docblock
1 parent 517aa33 commit 98ee5d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Files/File.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public function __construct(string $path, bool $checkFile = false)
5959
*
6060
* Implementations SHOULD return the value stored in the "size" key of
6161
* the file in the $_FILES array if available, as PHP calculates this based
62-
* on the actual size transmitted.
62+
* on the actual size transmitted. A RuntimeException will be thrown if the file
63+
* does not exist or an error occurs.
6364
*
6465
* @return false|int The file size in bytes, or false on failure
6566
*/

0 commit comments

Comments
 (0)