Skip to content

Commit 572a850

Browse files
committed
chore: add override
Use new attribute: https://www.php.net/manual/class.override.php
1 parent a368e42 commit 572a850

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"ext-openssl": "*",
3636
"guzzlehttp/guzzle": "^7.9.2",
3737
"spomky-labs/base64url": "^2.0.4",
38+
"symfony/polyfill-php83": "^1.33",
3839
"web-token/jwt-library": "^3.4.9|^4.0.6"
3940
},
4041
"suggest": {

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ parameters:
33
paths:
44
- src
55
reportUnmatchedIgnoredErrors: false
6+
checkMissingOverrideMethodAttribute: true
7+
tipsOfTheDay: false
68
ignoreErrors:
79
- identifier: missingType.iterableValue
810
strictRules:

src/MessageSentReport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function getResponseContent(): ?string
9393
return $this->response?->getBody()->getContents();
9494
}
9595

96+
#[\Override]
9697
public function jsonSerialize(): array
9798
{
9899
return [

src/Subscription.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,33 +72,25 @@ public static function create(array $associativeArray): self
7272
);
7373
}
7474

75-
/**
76-
* {@inheritDoc}
77-
*/
75+
#[\Override]
7876
public function getEndpoint(): string
7977
{
8078
return $this->endpoint;
8179
}
8280

83-
/**
84-
* {@inheritDoc}
85-
*/
81+
#[\Override]
8682
public function getPublicKey(): ?string
8783
{
8884
return $this->publicKey;
8985
}
9086

91-
/**
92-
* {@inheritDoc}
93-
*/
87+
#[\Override]
9488
public function getAuthToken(): ?string
9589
{
9690
return $this->authToken;
9791
}
9892

99-
/**
100-
* {@inheritDoc}
101-
*/
93+
#[\Override]
10294
public function getContentEncoding(): ?string
10395
{
10496
return $this->contentEncoding?->value;

0 commit comments

Comments
 (0)