aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-10-23 17:47:25 +0200
committerGitHub <noreply@github.com>2024-10-23 17:47:25 +0200
commitc00d49bb5517b8bb9c9843cbebe13c182deed0a3 (patch)
tree147180cc8fd68aa79fcd7905a5fb0f3773efd902 /apps
parentb5ac989ecd4e6f380af4699cb8c0aae872284459 (diff)
parentf25a71806baff92b4fa51e35242eaeb805f82d9f (diff)
downloadnextcloud-server-c00d49bb5517b8bb9c9843cbebe13c182deed0a3.tar.gz
nextcloud-server-c00d49bb5517b8bb9c9843cbebe13c182deed0a3.zip
Merge pull request #48867 from nextcloud/fix/apps/wrong-missing-casts
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php2
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
-rw-r--r--apps/user_ldap/ajax/getNewServerConfigPrefix.php2
-rw-r--r--apps/workflowengine/lib/Check/RequestTime.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
index 7e07703f430..029e94eeef8 100644
--- a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
+++ b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
@@ -490,7 +490,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider {
$notification = $this->notificationManager->createNotification();
$notification->setApp('files_sharing')
->setUser($share['user'])
- ->setObject('remote_share', (int)$share['id']);
+ ->setObject('remote_share', (string)$share['id']);
$this->notificationManager->markProcessed($notification);
$event = $this->activityManager->generateEvent();
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index f6791f78a38..32fd81465fa 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -980,7 +980,7 @@ class Trashbin implements IEventListener {
$pattern = \OC::$server->getDatabaseConnection()->escapeLikeParameter(basename($filename));
if ($timestamp) {
// fetch for old versions
- $escapedTimestamp = \OC::$server->getDatabaseConnection()->escapeLikeParameter($timestamp);
+ $escapedTimestamp = \OC::$server->getDatabaseConnection()->escapeLikeParameter((string)$timestamp);
$pattern .= '.v%.d' . $escapedTimestamp;
$offset = -strlen($escapedTimestamp) - 2;
} else {
diff --git a/apps/user_ldap/ajax/getNewServerConfigPrefix.php b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
index 9ee225ddaa0..a91c3c516ab 100644
--- a/apps/user_ldap/ajax/getNewServerConfigPrefix.php
+++ b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
@@ -18,7 +18,7 @@ $serverConnections = $helper->getServerConfigurationPrefixes();
sort($serverConnections);
$lk = array_pop($serverConnections);
$ln = (int)str_replace('s', '', $lk);
-$nk = 's' . str_pad($ln + 1, 2, '0', STR_PAD_LEFT);
+$nk = 's' . str_pad((string)($ln + 1), 2, '0', STR_PAD_LEFT);
$resultData = ['configPrefix' => $nk];
diff --git a/apps/workflowengine/lib/Check/RequestTime.php b/apps/workflowengine/lib/Check/RequestTime.php
index f4d2093dc50..b6b4e9176c2 100644
--- a/apps/workflowengine/lib/Check/RequestTime.php
+++ b/apps/workflowengine/lib/Check/RequestTime.php
@@ -62,7 +62,7 @@ class RequestTime implements ICheck {
[$hour1, $minute1] = explode(':', $time1);
$date1 = new \DateTime('now', new \DateTimeZone($timezone1));
$date1->setTimestamp($currentTimestamp);
- $date1->setTime($hour1, $minute1);
+ $date1->setTime((int)$hour1, (int)$minute1);
return $date1->getTimestamp();
}