1 | <?php |
||
15 | class Adapter extends AbstractAdapter |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $driver = "google"; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $providerClass = Provider::class; |
||
26 | |||
27 | /** |
||
28 | * @param $user |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | protected function mapUserDetails($user) |
||
39 | |||
40 | /** |
||
41 | * @return Quota |
||
42 | */ |
||
43 | public function getQuota() |
||
49 | |||
50 | /** |
||
51 | * @return Google_Service_Drive |
||
52 | */ |
||
53 | protected function makeService() |
||
72 | |||
73 | /** |
||
74 | * @param UploadRequest $request |
||
75 | * |
||
76 | * @return string |
||
77 | * |
||
78 | */ |
||
79 | public function upload( UploadRequest $request ) |
||
94 | |||
95 | /** |
||
96 | * @param $destinationPath |
||
97 | * |
||
98 | * @return Google_Service_Drive_DriveFile |
||
99 | */ |
||
100 | protected function prepareFile( $destinationPath ) |
||
109 | |||
110 | /** |
||
111 | * @param $sourcePath |
||
112 | * |
||
113 | * @return array |
||
114 | */ |
||
115 | protected function stat( $sourcePath ) |
||
124 | |||
125 | /** |
||
126 | * @param $path |
||
127 | * |
||
128 | * @return mixed |
||
129 | */ |
||
130 | protected function getFolderIdForPath( $path ) |
||
136 | |||
137 | /** |
||
138 | * @param $sourcePath |
||
139 | * @param Google_Service_Drive_DriveFile $file |
||
140 | * @param $filesize |
||
141 | * |
||
142 | * @return string |
||
143 | */ |
||
144 | protected function uploadChunked( $sourcePath, Google_Service_Drive_DriveFile $file, $filesize ) |
||
174 | |||
175 | /** |
||
176 | * @param array $folders |
||
177 | * @param string $parentFolderId |
||
178 | * |
||
179 | * @return mixed |
||
180 | */ |
||
181 | protected function prepareFolderTree( array $folders, $parentFolderId = 'root' ) |
||
201 | |||
202 | /** |
||
203 | * @param $name |
||
204 | * @param string $parentFolderId |
||
205 | * |
||
206 | * @return mixed |
||
207 | */ |
||
208 | protected function folderExists( $name, $parentFolderId = 'root' ) |
||
218 | |||
219 | public function checkUploadStatus( UploadResponse $response ) |
||
223 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: