Skip to content

Commit 7696e62

Browse files
committed
Fix invalid PHPDoc
The classes were not referenced and thus the PHPDoc not valid as pointed out by PHPStorm and Phan when running on @nextcloud: ``` apps/files_external/lib/Lib/Storage/Swift.php:387 PhanUndeclaredClassMethod Call to method get from undeclared class \OpenCloud\ObjectStore\Resource\Client ``` Signed-off-by: Lukas Reschke <[email protected]>
1 parent 8c5cb50 commit 7696e62

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/OpenCloud/ObjectStore/Resource/AbstractResource.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
use Guzzle\Http\Message\Response;
2121
use OpenCloud\Common\Base;
22+
use OpenCloud\Common\Http\Client;
2223
use OpenCloud\Common\Service\ServiceInterface;
24+
use OpenCloud\ObjectStore\Service;
2325

2426
/**
2527
* Abstract base class which implements shared functionality of ObjectStore
@@ -36,7 +38,7 @@ abstract class AbstractResource extends Base
3638
/** @var string The FQCN of the metadata object used for the container. */
3739
protected $metadataClass = 'OpenCloud\\Common\\Metadata';
3840

39-
/** @var \OpenCloud\Common\Service\ServiceInterface The service object. */
41+
/** @var Service The service object. */
4042
protected $service;
4143

4244
public function __construct(ServiceInterface $service)
@@ -230,7 +232,7 @@ public function retrieveMetadata()
230232
/**
231233
* To delete or unset a particular metadata item.
232234
*
233-
* @param $key Metadata key to unset
235+
* @param string $key Metadata key to unset
234236
* @return Response HTTP response returned from API operation to unset metadata item.
235237
*/
236238
public function unsetMetadataItem($key)

0 commit comments

Comments
 (0)