Skip to content

Commit

Permalink
Merge pull request #297 from KazuyaUchida/restore-return-type
Browse files Browse the repository at this point in the history
Restored return type for 'request' method
  • Loading branch information
koriym authored May 23, 2024
2 parents f11403d + b9662d0 commit e5fddca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Module/ResourceClientModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function configure(): void
/** @psalm-suppress DeprecatedClass */
private function configureDeprecatedBindings(): void
{
$this->bind(HalLink::class); // @phpstan-ignore
$this->bind(ReverseLinkInterface::class)->to(NullReverseLink::class); // @phpstan-ignore
$this->bind(HalLink::class);
$this->bind(ReverseLinkInterface::class)->to(NullReverseLink::class);
}
}
2 changes: 1 addition & 1 deletion src/RequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function toUriWithMethod(): string;
*/
public function hash(): string;

/** @return ResourceObject|static */
/** @return AbstractRequest|ResourceObject */
public function request();

/**
Expand Down
11 changes: 10 additions & 1 deletion tests/Fake/FakeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,52 @@

class FakeRequest implements RequestInterface
{
/** @inheritDoc */
public function __invoke(?array $query = null): ResourceObject
{
// TODO: Implement __invoke() method.
}

/** @inheritDoc */
public function withQuery(array $query): RequestInterface
{
}

/** @inheritDoc */
public function addQuery(array $query): RequestInterface
{
}

/** @inheritDoc */
public function toUri(): string
{
}

/** @inheritDoc */
public function toUriWithMethod(): string
{
}

/** @inheritDoc */
public function hash(): string
{
}

/** @inheritDoc */
public function request()
{
}

/** @inheritDoc */
public function linkSelf(string $linkKey): RequestInterface
{
}

/** @inheritDoc */
public function linkNew(string $linkKey): RequestInterface
{
}

/** @inheritDoc */
public function linkCrawl(string $linkKey): RequestInterface
{
}
Expand Down

0 comments on commit e5fddca

Please sign in to comment.