Skip to content

Commit 27b7cab

Browse files
Fix type mismatch
1 parent 657b63f commit 27b7cab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Backup/File/GoogleDrive.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class GoogleDrive extends Remote
2121
/**
2222
* Google drive api service.
2323
*
24-
* @var \Google_Service_Drive
24+
* @var Google_Service_Drive
2525
*/
2626
private $service;
2727

@@ -35,23 +35,23 @@ class GoogleDrive extends Remote
3535
/**
3636
* Constructor.
3737
*
38-
* @param \Google_Service_Drive $service
39-
* @param \Google_Service_Drive_DriveFile $googleFile
38+
* @param Google_Service_Drive $service
39+
* @param Google_Service_Drive_DriveFile $googleFile
4040
*/
4141
public function __construct(Google_Service_Drive $service, Google_Service_Drive_DriveFile $googleFile)
4242
{
4343
$this->service = $service;
4444
$this->filename = $googleFile->getName();
4545
$this->pathname = $googleFile->getId();
4646
$this->fileId = $googleFile->getId();
47-
$this->size = $googleFile->getSize();
47+
$this->size = (int) $googleFile->getSize();
4848
$this->lastModified = strtotime($googleFile->getCreatedTime());
4949
}
5050

5151
/**
5252
* Deletes the file from Google Drive.
5353
*
54-
* @throws \phpbu\App\Exception
54+
* @throws Exception
5555
*/
5656
public function unlink()
5757
{

0 commit comments

Comments
 (0)