Skip to content

Add sodium_crypto_secretbox_keygen function stub#4953

Closed
thePanz wants to merge 45 commits intophpstan:2.1.xfrom
thePanz:patch-1
Closed

Add sodium_crypto_secretbox_keygen function stub#4953
thePanz wants to merge 45 commits intophpstan:2.1.xfrom
thePanz:patch-1

Conversation

@thePanz
Copy link
Copy Markdown
Contributor

@thePanz thePanz commented Feb 16, 2026

According to the docs, the function returns a non-empty string: https://www.php.net/manual/en/function.sodium-crypto-secretbox-keygen.php

ondrejmirtes and others added 30 commits February 13, 2026 10:49
Automatically detects undocumented parameters in conf/parametersSchema.neon
and creates a draft PR on phpstan/phpstan with documentation updates.
Triggers on push to 2.2.x when the schema changes, or manually.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use github.event.before for push diffs to handle multi-commit pushes.
Add explicit else branch for manual dispatch to check entire schema.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These parameters exist purely to be toggled by rule levels
and are not configured by users directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The safe-output patch was trying to create the file as new, but it
already exists in phpstan/phpstan. Add a pre-step that fetches and
commits the file so the agent's edits produce a modification patch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Instead of using safe-outputs create-pull-request (which generates
patches that fail on cross-repo applies), checkout phpstan/phpstan
to __phpstan-website/ subdirectory, edit config-reference.md in place,
and push branch + create PR via bash/gh CLI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The gh-aw framework runs git commands in the workspace root expecting
a git repository. Without checking out phpstan-src first, the
"Configure Git credentials" step fails with "not a git repository".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The parametersSchema.neon has nested structure() blocks like
exceptions.check.* and cache.*. The agent was only looking at
top-level parameters and missing nested ones like throwTypeCovariance
and tooWideImplicitThrowType.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ondrejmirtes and others added 15 commits February 16, 2026 08:13
Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a lightweight check-trigger job on ubuntu-latest that checks if the
comment contains the @phpstan-bot trigger phrase. The expensive react job
(setup-php, composer install on blacksmith runner) only runs when the
trigger phrase is actually present.

https://claude.ai/code/session_01T86RqyQoZyKWyG4MUnf7FC
Runs claude-random-easy-fixes.yml with issue_count=5 every hour
at :15 from 10pm to 7am CEST (20:15-05:15 UTC).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@phpstan-bot
Copy link
Copy Markdown
Collaborator

You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x.

@thePanz thePanz changed the base branch from 2.2.x to 2.1.x February 16, 2026 14:17
@thePanz thePanz closed this Feb 16, 2026
@thePanz thePanz deleted the patch-1 branch February 19, 2026 10:07
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.

4 participants