Merge pull request #25664 from nextcloud/fix/psalm/dav_casts
Fix some RedundantCast in dav code
This commit is contained in:
commit
d6e34b5045
|
@ -2158,10 +2158,10 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
->values($valuesToInsert)
|
->values($valuesToInsert)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$subscriptionId = $this->db->lastInsertId('*PREFIX*calendarsubscriptions');
|
$subscriptionId = $query->getLastInsertId();
|
||||||
|
|
||||||
$subscriptionRow = $this->getSubscriptionById($subscriptionId);
|
$subscriptionRow = $this->getSubscriptionById($subscriptionId);
|
||||||
$this->dispatcher->dispatchTyped(new SubscriptionCreatedEvent((int)$subscriptionId, $subscriptionRow));
|
$this->dispatcher->dispatchTyped(new SubscriptionCreatedEvent($subscriptionId, $subscriptionRow));
|
||||||
$this->legacyDispatcher->dispatch('\OCA\DAV\CalDAV\CalDavBackend::createSubscription', new GenericEvent(
|
$this->legacyDispatcher->dispatch('\OCA\DAV\CalDAV\CalDavBackend::createSubscription', new GenericEvent(
|
||||||
'\OCA\DAV\CalDAV\CalDavBackend::createSubscription',
|
'\OCA\DAV\CalDAV\CalDavBackend::createSubscription',
|
||||||
[
|
[
|
||||||
|
|
|
@ -130,7 +130,7 @@ class AppleProvisioningPlugin extends ServerPlugin {
|
||||||
$absoluteURL = $this->urlGenerator->getBaseUrl();
|
$absoluteURL = $this->urlGenerator->getBaseUrl();
|
||||||
$parsedUrl = parse_url($absoluteURL);
|
$parsedUrl = parse_url($absoluteURL);
|
||||||
if (isset($parsedUrl['port'])) {
|
if (isset($parsedUrl['port'])) {
|
||||||
$serverPort = (int) $parsedUrl['port'];
|
$serverPort = $parsedUrl['port'];
|
||||||
} else {
|
} else {
|
||||||
$serverPort = 443;
|
$serverPort = 443;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue