Skip to content

Commit

Permalink
Soothe SA
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuyaUchida committed May 23, 2024
1 parent 035ec6c commit 442f699
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ parameters:
excludePaths:
- '%currentWorkingDirectory%/tests/tmp/*'
- '%currentWorkingDirectory%/tests/Module/tmp/*'
- '%currentWorkingDirectory%/tests/Fake/*'
ignoreErrors:
- '#Access to an undefined property#'
- '%currentWorkingDirectory%/tests/Fake/*'
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: 2 additions & 0 deletions tests/AttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ public function testLink(News $news): void
public function testResourceParam(): void
{
$ro = $this->resource->get->uri('app://self/greeting')->eager->request();

Check failure on line 62 in tests/AttributeTest.php

View workflow job for this annotation

GitHub Actions / sa / PHPStan

Access to an undefined property BEAR\Resource\ResourceInterface::$get.
$this->assertIsArray($ro->body);
$this->assertSame('kumakun', $ro->body['nickname']);
}

public function testResourceParamInUriTemplate(): void
{
$ro = $this->resource->post->uri('app://self/greeting')->withQuery(['name' => 'BEAR'])->eager->request();

Check failure on line 69 in tests/AttributeTest.php

View workflow job for this annotation

GitHub Actions / sa / PHPStan

Access to an undefined property BEAR\Resource\ResourceInterface::$post.
$this->assertIsArray($ro->body);
$this->assertSame('login:BEAR', $ro->body['id']);
}

Expand Down

0 comments on commit 442f699

Please sign in to comment.