1 | <?php |
||
34 | class PersonalMount extends MountPoint implements MoveableMount { |
||
35 | /** @var IUserStoragesService */ |
||
36 | protected $storagesService; |
||
37 | |||
38 | /** @var int */ |
||
39 | protected $numericStorageId; |
||
40 | |||
41 | /** |
||
42 | * @param IUserStoragesService $storagesService |
||
43 | * @param int $storageId |
||
44 | * @param \OCP\Files\Storage\IStorage $storage |
||
45 | * @param string $mountpoint |
||
46 | * @param array $arguments (optional) configuration for the storage backend |
||
47 | * @param \OCP\Files\Storage\IStorageFactory $loader |
||
48 | * @param array $mountOptions mount specific options |
||
49 | */ |
||
50 | public function __construct( |
||
63 | |||
64 | /** |
||
65 | * Move the mount point to $target |
||
66 | * |
||
67 | * @param string $target the target mount point |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function moveMount($target) { |
||
79 | |||
80 | /** |
||
81 | * Remove the mount points |
||
82 | * |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function removeMount() { |
||
89 | |||
90 | /** |
||
91 | * Returns true |
||
92 | * |
||
93 | * @param string $target unused |
||
94 | * @return bool true |
||
95 | */ |
||
96 | public function isTargetAllowed($target) { |
||
100 | |||
101 | /** |
||
102 | * Get the numeric storage id |
||
103 | * |
||
104 | * @return int |
||
105 | */ |
||
106 | public function getNumbericStorage() { |
||
109 | } |
||
110 |
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: