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
2 changes: 2 additions & 0 deletions benchmarks/ASTUnserializationBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use GraphQL\Language\Parser;
use Nuwave\Lighthouse\Schema\AST\DocumentAST;

use function Safe\unserialize;

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 8 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

/**
* @BeforeMethods({"prepareSchema"})
*/
Expand Down Expand Up @@ -52,7 +54,7 @@
*/
public function benchUnserializeDocumentNode(): void
{
unserialize($this->documentNode);

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 57 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.
}

/**
Expand All @@ -62,6 +64,6 @@
*/
public function benchUnserializeDocumentAST(): void
{
unserialize($this->documentAST);

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 67 in benchmarks/ASTUnserializationBench.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.
}
}
2 changes: 1 addition & 1 deletion src/Auth/BaseCanDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function handleField(FieldValue $fieldValue): void
} catch (\Throwable $throwable) {
$action = $this->directiveArgValue('action');
if ($action === 'EXCEPTION_NOT_AUTHORIZED') {
throw new AuthorizationException();
throw new AuthorizationException($throwable->getMessage(), $throwable->getCode(), $throwable);
}

if ($action === 'RETURN_VALUE') {
Expand Down
4 changes: 1 addition & 3 deletions src/Execution/Arguments/Argument.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ class Argument
*/
public mixed $value;

/**
* The type of the argument.
*/
/** The type of the argument. */
public ListType|NamedType|null $type = null;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Execution/ContextSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
use Nuwave\Lighthouse\Support\Contracts\SerializesContext;

use function Safe\unserialize;

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 12 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

class ContextSerializer implements SerializesContext
{
use SerializesAndRestoresModelIdentifiers;
Expand Down Expand Up @@ -42,7 +44,7 @@
[
'request' => $rawRequest,
'user' => $rawUser
] = unserialize($context);

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 47 in src/Execution/ContextSerializer.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

if ($rawRequest) {
$request = new Request(
Expand Down
4 changes: 1 addition & 3 deletions src/Scout/ScoutEnhancer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ class ScoutEnhancer

public function __construct(
protected ArgumentSet $argumentSet,
/**
* @var \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<TModel>|\Illuminate\Database\Eloquent\Relations\Relation<TModel>|\Laravel\Scout\Builder $builder
*/
/** @var \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<TModel>|\Illuminate\Database\Eloquent\Relations\Relation<TModel>|\Laravel\Scout\Builder $builder */
protected QueryBuilder|EloquentBuilder|Relation|ScoutBuilder $builder,
) {
$this->gather($this->argumentSet);
Expand Down
2 changes: 2 additions & 0 deletions src/Subscriptions/Storage/RedisStorageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use Nuwave\Lighthouse\Subscriptions\Contracts\StoresSubscriptions;
use Nuwave\Lighthouse\Subscriptions\Subscriber;

use function Safe\unserialize;

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 13 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

/**
* Stores subscribers and topics in redis.
*
Expand Down Expand Up @@ -87,7 +89,7 @@

// Other entries may contain invalid values.
try {
$subscriber = unserialize($subscriber);

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 92 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

// This key exists so remove it from the list of missing keys.
$missingKeys = array_diff($missingKeys, [$subscriber->channel]);
Expand Down Expand Up @@ -164,7 +166,7 @@
$subscriber = $this->connection->command('get', [$channelKey]);

return is_string($subscriber)
? unserialize($subscriber)

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 169 in src/Subscriptions/Storage/RedisStorageManager.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.
: null;
}

Expand Down
2 changes: 2 additions & 0 deletions src/Subscriptions/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
use Nuwave\Lighthouse\Support\Contracts\SerializesContext;

use function Safe\unserialize;

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Used function Safe\unserialize not found.

Check failure on line 14 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Used function Safe\unserialize not found.

class Subscriber
{
/**
Expand Down Expand Up @@ -103,7 +105,7 @@
$this->topic = $data['topic'];

$documentNode = AST::fromArray(
unserialize($data['query']),

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.0 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^9 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.1 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^12 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.3 with Laravel ^10 and highest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.4 with Laravel ^11 and lowest dependencies

Function Safe\unserialize not found.

Check failure on line 108 in src/Subscriptions/Subscriber.php

View workflow job for this annotation

GitHub Actions / PHPStan on PHP 8.2 with Laravel ^9 and lowest dependencies

Function Safe\unserialize not found.
);
assert($documentNode instanceof DocumentNode, 'We know the type since it is set during construction and serialized.');

Expand Down
2 changes: 2 additions & 0 deletions tests/Integration/Async/AsyncDirectiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
use Tests\DBTestCase;

use function Safe\unserialize;

final class AsyncDirectiveTest extends DBTestCase
{
public function testDispatchesMutation(): void
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Schema/AST/DocumentASTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use Tests\TestCase;
use Tests\Utils\Models\User;

use function Safe\unserialize;

final class DocumentASTTest extends TestCase
{
public function testParsesSimpleSchema(): void
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Subscriptions/SubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Tests\TestCase;
use Tests\TestsSerialization;

use function Safe\unserialize;

final class SubscriberTest extends TestCase
{
use TestsSerialization;
Expand Down
Loading