Skip to content

Commit bfccb86

Browse files
authored
Merge pull request #23 from humhub-contrib/rector/auto-update
chore: automated Rector updates
2 parents 73a9615 + 50275f1 commit bfccb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/OpenController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function actionUpdate()
2626
$this->forcePostRequest();
2727
$fileContent = Yii::$app->request->post('content');
2828
$this->file->store->setContent($fileContent);
29-
$this->file->size = strlen($fileContent);
29+
$this->file->size = strlen((string) $fileContent);
3030
$this->file->save();
3131

3232
return [

0 commit comments

Comments
 (0)