diff --git a/src/Tracing/FederatedTracing/Proto/ContextualizedStats.php b/src/Tracing/FederatedTracing/Proto/ContextualizedStats.php index 6c01d7538..d9a1a0ea8 100644 --- a/src/Tracing/FederatedTracing/Proto/ContextualizedStats.php +++ b/src/Tracing/FederatedTracing/Proto/ContextualizedStats.php @@ -67,11 +67,11 @@ class ContextualizedStats extends \Google\Protobuf\Internal\Message * Key is type name. This structure provides data for the count and latency of individual * field executions and thus only reflects operations for which field-level tracing occurred. * @var \Nuwave\Lighthouse\Tracing\FederatedTracing\Proto\ExtendedReferences $extended_references - * Extended references including input types and enum values. + * Extended references including input types and enum values * @var array|\Google\Protobuf\Internal\MapField $local_per_type_stat - * Per type stats that are obtained directly by the router or gateway rather than FTV1. + * Per type stats that are obtained directly by the router or gateway rather than FTV1 * @var \Nuwave\Lighthouse\Tracing\FederatedTracing\Proto\LimitsStats $limits_stats - * Stats that contain limits information for the query. + * Stats that contain limits information for the query * @var int|string $operation_count * Total number of operations processed during this period for this context. This includes all operations, even if they are sampled * and not included in the query latency stats. diff --git a/src/Tracing/FederatedTracing/Proto/FieldStat.php b/src/Tracing/FederatedTracing/Proto/FieldStat.php index e189b9c25..eeeaa606d 100644 --- a/src/Tracing/FederatedTracing/Proto/FieldStat.php +++ b/src/Tracing/FederatedTracing/Proto/FieldStat.php @@ -90,7 +90,7 @@ class FieldStat extends \Google\Protobuf\Internal\Message * field_execution_weight). * @var int|string $observed_execution_count * Number of times that the resolver for this field is directly observed being - * executed. + * executed * @var int|string $estimated_execution_count * Same as `observed_execution_count` but potentially scaled upwards if the server was only * performing field-level instrumentation on a sampling of operations. For diff --git a/src/Tracing/FederatedTracing/Proto/InputFieldStats.php b/src/Tracing/FederatedTracing/Proto/InputFieldStats.php index 4f7ea6cc5..d4e491c31 100644 --- a/src/Tracing/FederatedTracing/Proto/InputFieldStats.php +++ b/src/Tracing/FederatedTracing/Proto/InputFieldStats.php @@ -39,9 +39,9 @@ class InputFieldStats extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @var int|string $refs - * The total number of operations that reference the input object field. + * The total number of operations that reference the input object field * @var int|string $null_refs - * The number of operations that reference the input object field as a null value. + * The number of operations that reference the input object field as a null value * @var int|string $missing * The number of operations that don't reference this input object field (the field is missing or undefined). * } diff --git a/src/Tracing/FederatedTracing/Proto/LimitsStats.php b/src/Tracing/FederatedTracing/Proto/LimitsStats.php index b0276468e..db6f6bcc3 100644 --- a/src/Tracing/FederatedTracing/Proto/LimitsStats.php +++ b/src/Tracing/FederatedTracing/Proto/LimitsStats.php @@ -85,10 +85,10 @@ class LimitsStats extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @var string $strategy - * The strategy used in cost calculations. + * The strategy used in cost calculations * @var array|array|\Google\Protobuf\Internal\RepeatedField $cost_estimated * The estimated cost as calculated via the strategy specified in stats context - * The reason that this is a histogram rather than fixed cost is that it can be affected by paging variables. + * The reason that this is a histogram rather than fixed cost is that it can be affected by paging variables * @var int|string $max_cost_estimated * The maximum estimated cost of the query * @var array|array|\Google\Protobuf\Internal\RepeatedField $cost_actual diff --git a/src/Tracing/FederatedTracing/Proto/QueryLatencyStats.php b/src/Tracing/FederatedTracing/Proto/QueryLatencyStats.php index 7fb49e3c0..7c1835a58 100644 --- a/src/Tracing/FederatedTracing/Proto/QueryLatencyStats.php +++ b/src/Tracing/FederatedTracing/Proto/QueryLatencyStats.php @@ -107,7 +107,7 @@ class QueryLatencyStats extends \Google\Protobuf\Internal\Message * @var int|string $persisted_query_misses * @var array|array|\Google\Protobuf\Internal\RepeatedField $cache_latency_count * This array includes the latency buckets for all operations included in cache_hits - * See comment on latency_count for details. + * See comment on latency_count for details * @var \Nuwave\Lighthouse\Tracing\FederatedTracing\Proto\PathErrorStats $root_error_stats * Paths and counts for each error. The total number of requests with errors within this object should be the same as * requests_with_errors_count below. diff --git a/src/Tracing/FederatedTracing/Proto/Trace.php b/src/Tracing/FederatedTracing/Proto/Trace.php index 88710df77..0b5f445ee 100644 --- a/src/Tracing/FederatedTracing/Proto/Trace.php +++ b/src/Tracing/FederatedTracing/Proto/Trace.php @@ -177,15 +177,15 @@ class Trace extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @var \Google\Protobuf\Timestamp $start_time - * Wallclock time when the trace began. + * Wallclock time when the trace began * @var \Google\Protobuf\Timestamp $end_time - * Wallclock time when the trace ended. + * Wallclock time when the trace ended * @var int|string $duration_ns * High precision duration of the trace; may not equal end_time-start_time - * (eg, if your machine's clock changed during the trace). + * (eg, if your machine's clock changed during the trace) * @var \Nuwave\Lighthouse\Tracing\FederatedTracing\Proto\Trace\Node $root * A tree containing information about all resolvers run directly by this - * service, including errors. + * service, including errors * @var bool $is_incomplete * If this is true, the trace is potentially missing some nodes that were * present on the query plan. This can happen if the trace span buffer used @@ -208,7 +208,7 @@ class Trace extends \Google\Protobuf\Internal\Message * @var string $unexecutedOperationBody * Optional: when GraphQL parsing or validation against the GraphQL schema fails, these fields * can include reference to the operation being sent for users to dig into the set of operations - * that are failing validation. + * that are failing validation * @var string $unexecutedOperationName * @var \Nuwave\Lighthouse\Tracing\FederatedTracing\Proto\Trace\Details $details * @var string $client_name diff --git a/src/Tracing/FederatedTracing/Proto/Trace/Limits.php b/src/Tracing/FederatedTracing/Proto/Trace/Limits.php index 5232fc527..6fb7c2f3b 100644 --- a/src/Tracing/FederatedTracing/Proto/Trace/Limits.php +++ b/src/Tracing/FederatedTracing/Proto/Trace/Limits.php @@ -76,9 +76,9 @@ class Limits extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @var string $result - * The result of the operation. + * The result of the operation * @var string $strategy - * The strategy used in cost calculations. + * The strategy used in cost calculations * @var int|string $cost_estimated * The estimated cost as calculated via the strategy specified in strategy * @var int|string $cost_actual diff --git a/src/Tracing/FederatedTracing/Proto/Trace/QueryPlanNode/FetchNode.php b/src/Tracing/FederatedTracing/Proto/Trace/QueryPlanNode/FetchNode.php index f1a4a029f..edc48c865 100644 --- a/src/Tracing/FederatedTracing/Proto/Trace/QueryPlanNode/FetchNode.php +++ b/src/Tracing/FederatedTracing/Proto/Trace/QueryPlanNode/FetchNode.php @@ -66,12 +66,12 @@ class FetchNode extends \Google\Protobuf\Internal\Message * @var \Nuwave\Lighthouse\Tracing\FederatedTracing\Proto\Trace $trace * This Trace only contains start_time, end_time, duration_ns, and root; * all timings were calculated **on the subgraph**, and clock skew - * will be handled by the ingress server. + * will be handled by the ingress server * @var int|string $sent_time_offset - * relative to the outer trace's start_time, in ns, measured in the Router/Gateway. + * relative to the outer trace's start_time, in ns, measured in the Router/Gateway * @var \Google\Protobuf\Timestamp $sent_time * Wallclock times measured in the Router/Gateway for when this operation was - * sent and received. + * sent and received * @var \Google\Protobuf\Timestamp $received_time * } */ diff --git a/tests/Utils/Directives/GlobalFieldMiddlewareDirective.php b/tests/Utils/Directives/GlobalFieldMiddlewareDirective.php index a7f65ad3d..f77d562c7 100644 --- a/tests/Utils/Directives/GlobalFieldMiddlewareDirective.php +++ b/tests/Utils/Directives/GlobalFieldMiddlewareDirective.php @@ -19,9 +19,9 @@ public static function definition(): string public function handleField(FieldValue $fieldValue): void { $fieldValue->wrapResolver( - fn (): callable => + fn (): callable // Must not crash - fn (): bool => $this->definitionNode instanceof FieldDefinitionNode + => fn (): bool => $this->definitionNode instanceof FieldDefinitionNode && $this->directiveArgValue('random') === null, ); }