diff --git a/api/src/Vfs/StreamWrapper.php b/api/src/Vfs/StreamWrapper.php index 1dee58c7e5..fb6e8cd56f 100644 --- a/api/src/Vfs/StreamWrapper.php +++ b/api/src/Vfs/StreamWrapper.php @@ -31,6 +31,16 @@ class StreamWrapper extends Base implements StreamWrapperIface const PREFIX = 'vfs://default'; + /** + * We do not use this constant anywhere, but if you call + * setup/setup-cli.php --admin default,admin,secret,newuser,secret,User,New + * without this constant defined using php8.1, we get an error: + * An error happened: Undefined constant EGroupware\Api\Vfs\StreamWrapper::vfs + * + * Defining this constant makes the error not happen. See ticket #74694 + */ + const vfs = "Who wants this"; + /** * Should unreadable entries in a not writable directory be hidden, default yes */