Skip to content

Commit 90b9334

Browse files
Remove #[Override] attribute from upload and remove methods
This commit removes the #[Override] attribute from the upload and remove methods in the CanUpload trait. This change ensures compatibility with newer versions of the PHP language and reduces potential issues caused by misused or deprecated attributes.
1 parent ba13034 commit 90b9334

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/CanUpload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function removeEmptyArrays($array): array
4545
/**
4646
* @throws UnitException
4747
*/
48-
#[\Override] public function upload(UnitRequest $request)
48+
public function upload(UnitRequest $request)
4949
{
5050
$data = $this->removeEmptyArrays($this->toArray());
5151

@@ -69,7 +69,7 @@ protected function removeEmptyArrays($array): array
6969
* @return void
7070
* @throws UnitException
7171
*/
72-
#[\Override] public function remove(UnitRequest $request)
72+
public function remove(UnitRequest $request)
7373
{
7474
try {
7575
$request->setMethod(HttpMethodsEnum::DELETE->value)->send($this->getApiEndpoint());

0 commit comments

Comments
 (0)