Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"ext-openssl": "*",
"guzzlehttp/guzzle": "^7.9.2",
"spomky-labs/base64url": "^2.0.4",
"symfony/polyfill-php83": "^1.33",
"web-token/jwt-library": "^3.4.9|^4.0.6"
},
"suggest": {
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ parameters:
paths:
- src
reportUnmatchedIgnoredErrors: false
checkMissingOverrideMethodAttribute: true
tipsOfTheDay: false
ignoreErrors:
- identifier: missingType.iterableValue
strictRules:
Expand Down
1 change: 1 addition & 0 deletions src/MessageSentReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function getResponseContent(): ?string
return $this->response?->getBody()->getContents();
}

#[\Override]
public function jsonSerialize(): array
{
return [
Expand Down
16 changes: 4 additions & 12 deletions src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,33 +72,25 @@ public static function create(array $associativeArray): self
);
}

/**
* {@inheritDoc}
*/
#[\Override]
public function getEndpoint(): string
{
return $this->endpoint;
}

/**
* {@inheritDoc}
*/
#[\Override]
public function getPublicKey(): ?string
{
return $this->publicKey;
}

/**
* {@inheritDoc}
*/
#[\Override]
public function getAuthToken(): ?string
{
return $this->authToken;
}

/**
* {@inheritDoc}
*/
#[\Override]
public function getContentEncoding(): ?string
{
return $this->contentEncoding?->value;
Expand Down
4 changes: 1 addition & 3 deletions tests/PushServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ final class PushServiceTest extends PHPUnit\Framework\TestCase
/** @var WebPush WebPush with correct api keys */
private WebPush $webPush;

/**
* {@inheritdoc}
*/
#[\Override]
public static function setUpBeforeClass(): void
{
self::$testServiceUrl = 'http://localhost:'.self::$portNumber;
Expand Down
8 changes: 2 additions & 6 deletions tests/WebPushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ final class WebPushTest extends PHPUnit\Framework\TestCase
/** @var WebPush WebPush with correct api keys */
private WebPush $webPush;

/**
* {@inheritdoc}
*/
#[\Override]
public static function setUpBeforeClass(): void
{
self::$endpoints = [
Expand All @@ -52,9 +50,7 @@ public static function setUpBeforeClass(): void
}
}

/**
* {@inheritdoc}
*/
#[\Override]
public function setUp(): void
{
if (!getenv('CI')) {
Expand Down