Skip to content

Commit 561945a

Browse files
committed
graphql-php-v15: OperationParams methods getOriginalInput and isReadOnly have been dropped in favour of the public properties
1 parent 5c6aaf1 commit 561945a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Support/OperationParams.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ protected function init(BaseOperationParams $baseOperationParams): void
3232
$this->baseOperationParams = $baseOperationParams;
3333
}
3434

35-
public function getOriginalInput($key)
35+
/**
36+
* @return mixed|null
37+
*/
38+
public function getOriginalInput(string $key)
3639
{
37-
return $this->baseOperationParams->getOriginalInput($key);
40+
return $this->baseOperationParams->originalInput[$key] ?? null;
3841
}
3942

40-
public function isReadOnly()
43+
public function isReadOnly(): bool
4144
{
42-
return $this->baseOperationParams->isReadOnly();
45+
return $this->baseOperationParams->readOnly;
4346
}
4447

4548
public function getParsedQuery(): DocumentNode

0 commit comments

Comments
 (0)