Skip to content

Commit 658c155

Browse files
committed
[Task] Fix PHPStan issues
1 parent 417c52b commit 658c155

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/Lib/DocumentResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Exception;
1717
use Pimcore\Document;
18-
use Pimcore\Document\Adapter;
18+
use Pimcore\Document\AdapterInterface;
1919

2020
/**
2121
* @internal
@@ -25,7 +25,7 @@ final class DocumentResolver implements DocumentResolverInterface
2525
/**
2626
* @throws Exception
2727
*/
28-
public function getInstance(?string $adapter = null): ?Adapter
28+
public function getInstance(?string $adapter = null): ?AdapterInterface
2929
{
3030
return Document::getInstance($adapter);
3131
}
@@ -40,7 +40,7 @@ public function isFileTypeSupported(string $filetype): bool
4040
return Document::isFileTypeSupported($filetype);
4141
}
4242

43-
public function getDefaultAdapter(): ?Adapter
43+
public function getDefaultAdapter(): ?AdapterInterface
4444
{
4545
return Document::getDefaultAdapter();
4646
}

src/Lib/DocumentResolverInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace Pimcore\Bundle\StaticResolverBundle\Lib;
1515

1616
use Exception;
17-
use Pimcore\Document\Adapter;
17+
use Pimcore\Document\AdapterInterface;
1818

1919
/**
2020
* @internal
@@ -24,11 +24,11 @@ interface DocumentResolverInterface
2424
/**
2525
* @throws Exception
2626
*/
27-
public function getInstance(?string $adapter = null): ?Adapter;
27+
public function getInstance(?string $adapter = null): ?AdapterInterface;
2828

2929
public function isAvailable(): bool;
3030

3131
public function isFileTypeSupported(string $filetype): bool;
3232

33-
public function getDefaultAdapter(): ?Adapter;
33+
public function getDefaultAdapter(): ?AdapterInterface;
3434
}

src/Lib/VideoResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Exception;
1717
use Pimcore\Video;
18-
use Pimcore\Video\Adapter;
18+
use Pimcore\Video\AdapterInterface;
1919

2020
/**
2121
* @internal
@@ -25,7 +25,7 @@ final class VideoResolver implements VideoResolverInterface
2525
/**
2626
* @throws Exception
2727
*/
28-
public function getInstance(): ?Adapter
28+
public function getInstance(): ?AdapterInterface
2929
{
3030
return Video::getInstance();
3131
}

src/Lib/VideoResolverInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace Pimcore\Bundle\StaticResolverBundle\Lib;
1515

1616
use Exception;
17-
use Pimcore\Video\Adapter;
17+
use Pimcore\Video\AdapterInterface;
1818

1919
/**
2020
* @internal
@@ -24,7 +24,7 @@ interface VideoResolverInterface
2424
/**
2525
* @throws Exception
2626
*/
27-
public function getInstance(): ?Adapter;
27+
public function getInstance(): ?AdapterInterface;
2828

2929
public function isAvailable(): bool;
3030
}

0 commit comments

Comments
 (0)