Skip to content

Commit d43ac7a

Browse files
committed
[Refactor] Add missing internal method return type
1 parent 51dade5 commit d43ac7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function toArray()
167167
/**
168168
* @inheritDoc
169169
*/
170-
public function jsonSerialize()
170+
public function jsonSerialize(): array
171171
{
172172
try {
173173
$this->prepareEncoder();

src/Parser/IdentifierAndResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getResourceMeta()
8787
*/
8888
private function cacheMeta(): void
8989
{
90-
if (is_null($this->meta)) {
90+
if (null === $this->meta) {
9191
$this->meta = Json::hash(parent::getResourceMeta());
9292
}
9393
}
@@ -99,7 +99,7 @@ private function cacheMeta(): void
9999
*/
100100
private function cacheIdentifierMeta(): void
101101
{
102-
if (is_null($this->identifierMeta)) {
102+
if (null === $this->identifierMeta) {
103103
$this->identifierMeta = Json::hash(parent::getIdentifierMeta());
104104
}
105105
}

0 commit comments

Comments
 (0)