Skip to content

Commit 42e05f0

Browse files
committed
fixup! fixup! feat: fixup
1 parent d9df350 commit 42e05f0

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

.github/workflows/phpunit-kvstore.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
# This workflow is provided via the organization template repository
2-
#
3-
# https://github.com/nextcloud/.github
4-
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5-
#
61
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
72
# SPDX-License-Identifier: MIT
83

94
name: PHPUnit key-value store
105

116
on:
127
pull_request:
13-
schedule:
14-
- cron: "5 2 * * *"
158

169
permissions:
1710
contents: read
@@ -21,7 +14,6 @@ concurrency:
2114
cancel-in-progress: true
2215

2316
env:
24-
# Official Valkey image, see https://hub.docker.com/r/valkey/valkey
2517
VALKEY_IMAGE: valkey/valkey:8
2618

2719
jobs:
@@ -38,17 +30,9 @@ jobs:
3830
with:
3931
filters: |
4032
src:
41-
- '.github/workflows/**'
33+
- '.github/workflows/phpunit-kvstore.yml'
4234
- '3rdparty/**'
4335
- '**/appinfo/**'
44-
- '**/lib/**'
45-
- '**/templates/**'
46-
- '**/tests/**'
47-
- 'vendor/**'
48-
- 'vendor-bin/**'
49-
- '.php-cs-fixer.dist.php'
50-
- 'composer.json'
51-
- 'composer.lock'
5236
- '**.php'
5337
5438
phpunit-kvstore:

lib/private/Memcache/KeyValueCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function normalizeTtl(int $ttl): int {
264264
}
265265

266266
protected static function encodeValue(mixed $value): string {
267-
return is_int($value) ? (string)$value : json_encode($value);
267+
return is_int($value) ? (string)$value : json_encode($value, JSON_THROW_ON_ERROR);
268268
}
269269

270270
protected static function decodeValue(string $value): mixed {

0 commit comments

Comments
 (0)