Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"illuminate/contracts": "^10.0|^11.0|^12.0",
"illuminate/support": "^10.0|^11.0|^12.0",
"laragraph/utils": "^2.0.1",
"thecodingmachine/safe": "^2.4",
"thecodingmachine/safe": "^3.0",
"webonyx/graphql-php": "^15.0.3"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ protected function buildObjectTypeFromClass($type, array $opts = []): Type

if (!$type instanceof TypeConvertible) {
throw new TypeNotFound(
\Safe\sprintf(
\sprintf(
'Unable to convert %s to a GraphQL type, please add/implement the interface %s',
\get_class($type),
TypeConvertible::class
Expand Down Expand Up @@ -630,7 +630,7 @@ public static function getNormalizedSchemaConfiguration(string $schemaName): arr

if (!\is_string($schemaConfig) && !\is_array($schemaConfig)) {
throw new SchemaNotFound(
\Safe\sprintf(
\sprintf(
"Configuration for schema '%s' must be either an array or a class implementing %s, found type %s",
$schemaName,
ConfigConvertible::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function handle(string $schemaName, Schema $schema, OperationParams $para
}

if ($unusedVariables) {
$msg = \Safe\sprintf(
$msg = \sprintf(
'The following variables were provided but not consumed: %s',
implode(', ', array_keys($unusedVariables))
);
Expand Down
2 changes: 1 addition & 1 deletion src/Support/SelectFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ protected static function validateField(FieldDefinition $fieldObject, array $que

default:
throw new RuntimeException(
\Safe\sprintf(
\sprintf(
"Unsupported use of 'privacy' configuration on field '%s'.",
$fieldObject->name
)
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/Traits/SqlAssertionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ protected function assertSqlCount(int $expectedCount, string $msg = ''): void
$msg .= "\n\n";
}

$msg .= \Safe\sprintf(
$msg .= \sprintf(
"Expected number of SQL statements of %d does not match the actual value of %d\nQueries:\n\n%s\n",
$expectedCount,
$numSqlQueries,
implode(
"\n",
array_map(
static function (QueryExecuted $query) {
return \Safe\sprintf(
return \sprintf(
'[%s] %s',
$query->connectionName,
$query->sql
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/InstantiableTypesTest/FormattableDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function args(): array
'format' => [
'type' => Type::string(),
'defaultValue' => $this->defaultFormat,
'description' => \Safe\sprintf('Defaults to %s', $this->defaultFormat),
'description' => \sprintf('Defaults to %s', $this->defaultFormat),
],
'relative' => [
'type' => Type::boolean(),
Expand Down
Loading