pass by reference, closes #858

This commit is contained in:
El RIDO 2025-03-11 07:59:10 +01:00
parent e67972417e
commit 629f263cf5
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
12 changed files with 37 additions and 35 deletions

View file

@ -110,9 +110,8 @@ class Request
// it might be a creation or a deletion, the latter is detected below
$this->_operation = 'create';
try {
$this->_params = Json::decode(
file_get_contents(self::$_inputStream)
);
$data = file_get_contents(self::$_inputStream);
$this->_params = Json::decode($data);
} catch (Exception $e) {
// ignore error, $this->_params will remain empty
}