Skip to content

Update tooling#2759

Merged
spawnia merged 3 commits intomasterfrom
update-tooling
Mar 9, 2026
Merged

Update tooling#2759
spawnia merged 3 commits intomasterfrom
update-tooling

Conversation

@spawnia
Copy link
Collaborator

@spawnia spawnia commented Mar 9, 2026

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 95169161e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates PHP tooling/style compliance by switching unserialize() calls to the thecodingmachine/safe wrapper and aligning inline PHPDoc formatting, with a small change to authorization exception chaining.

Changes:

  • Import Safe\unserialize in several source/test/benchmark files so unserialization failures throw exceptions instead of emitting warnings/returning false.
  • Reformat a couple of parameter/property PHPDoc blocks into single-line doc comments.
  • Change BaseCanDirective to rethrow authorization failures with the original throwable attached.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Unit/Subscriptions/SubscriberTest.php Use Safe\unserialize in serialization round-trip test.
tests/Unit/Schema/AST/DocumentASTTest.php Use Safe\unserialize in DocumentAST serialization test.
tests/Integration/Async/AsyncDirectiveTest.php Use Safe\unserialize when cycling queued job through serialization.
src/Subscriptions/Subscriber.php Use Safe\unserialize for restoring stored query/context.
src/Subscriptions/Storage/RedisStorageManager.php Use Safe\unserialize when reading subscribers from Redis.
src/Execution/ContextSerializer.php Use Safe\unserialize when restoring serialized GraphQL context.
benchmarks/ASTUnserializationBench.php Use Safe\unserialize in benchmark methods.
src/Scout/ScoutEnhancer.php Collapse constructor param PHPDoc to single line.
src/Execution/Arguments/Argument.php Collapse property PHPDoc to single line.
src/Auth/BaseCanDirective.php Attach original throwable when throwing AuthorizationException for EXCEPTION_NOT_AUTHORIZED.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spawnia spawnia merged commit f063fcf into master Mar 9, 2026
65 checks passed
@spawnia spawnia deleted the update-tooling branch March 9, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants