Skip to content

Commit c52ee78

Browse files
committed
fix psalm
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent c4dde11 commit c52ee78

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/private/AppFramework/DependencyInjection/DIContainer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ public function __construct(string $appName, array $urlParams = [], ServerContai
345345
$this->registerService(IAppConfig::class, function (ContainerInterface $c) {
346346
return new OC\AppFramework\Services\AppConfig(
347347
$c->get(IConfig::class),
348-
$c->get('AppName')
348+
$c->get('AppName'),
349+
$c->get(\OCP\IAppConfig::class)
349350
);
350351
});
351352
$this->registerService(IInitialState::class, function (ContainerInterface $c) {

lib/private/AppFramework/Services/AppConfig.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public function getAllAppValues(string $key = '', bool $filtered = false): array
112112
* @deprecated use {@see setAppValueString()}
113113
*/
114114
public function setAppValue(string $key, string $value): void {
115+
/** @psalm-suppress InternalMethod */
115116
$this->appConfig->setValueMixed($this->appName, $key, $value);
116117
}
117118

@@ -233,6 +234,7 @@ public function setAppValueArray(
233234
* @return string
234235
*/
235236
public function getAppValue(string $key, string $default = ''): string {
237+
/** @psalm-suppress InternalMethod */
236238
return $this->appConfig->getValueMixed($this->appName, $key, $default);
237239
}
238240

0 commit comments

Comments
 (0)