Skip to content

Commit 95f4ea1

Browse files
authored
Fix return typehint in test trait (#30)
See https://bugs.php.net/bug.php?id=75449 as to why this didn't come up
1 parent c3f8726 commit 95f4ea1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Traits/EndpointTestCases.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Firehed\API\Traits;
66

7+
use Firehed\API\Interfaces\EndpointInterface;
78
use Firehed\Input\Interfaces\ValidationInterface;
89
use Firehed\Input\ValidationTestTrait;
910

@@ -22,7 +23,7 @@ trait EndpointTestCases
2223
* Get the endpoint under test
2324
* @return Interfaces\EndpointInterface
2425
*/
25-
abstract protected function getEndpoint(): Interfaces\EndpointInterface;
26+
abstract protected function getEndpoint(): EndpointInterface;
2627

2728
/**
2829
* Because EndpointInterface extends ValidationInterface, provide the same

0 commit comments

Comments
 (0)