diff --git a/psalm.xml b/psalm.xml
index c08f56c9..83154504 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -13,7 +13,9 @@
-
+
+
+
diff --git a/tests/stubs/oc_SystemConfig.php b/tests/stubs/oc_SystemConfig.php
new file mode 100644
index 00000000..971bcc4d
--- /dev/null
+++ b/tests/stubs/oc_SystemConfig.php
@@ -0,0 +1,29 @@
+
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+namespace OC {
+ class SystemConfig {
+ public function getValue(string $key, mixed $default = ''): mixed {
+ }
+ }
+}
diff --git a/tests/stubs/oc_core_command.php b/tests/stubs/oc_core_command.php
new file mode 100644
index 00000000..d537b8eb
--- /dev/null
+++ b/tests/stubs/oc_core_command.php
@@ -0,0 +1,34 @@
+
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+namespace OC\Core\Command {
+ use Symfony\Component\Console\Command\Command;
+
+ class Base extends Command {
+ protected function abortIfInterrupted() {
+ }
+ }
+
+ class InterruptedException extends \Exception {
+ }
+}
diff --git a/tests/stubs/stub.phpstub b/tests/stubs/oc_log_LogDetails.php
similarity index 80%
rename from tests/stubs/stub.phpstub
rename to tests/stubs/oc_log_LogDetails.php
index 5a7d0120..5b350d56 100644
--- a/tests/stubs/stub.phpstub
+++ b/tests/stubs/oc_log_LogDetails.php
@@ -21,29 +21,15 @@
*
*/
-namespace OC\Core\Command {
- use Symfony\Component\Console\Command\Command;
-
- class Base extends Command {
- protected function abortIfInterrupted(){
- }
- }
-
- class InterruptedException extends \Exception {
- }
-}
-
-namespace OC {
- class SystemConfig {
- }
-}
-
namespace OC\Log {
use OC\SystemConfig;
+
class LogDetails {
public function __construct(SystemConfig $config) {
}
public function logDetails(string $app, $message, int $level): array {
}
+ public function logDetailsAsJSON(string $app, $message, int $level): string {
+ }
}
}