Skip to content

Conversation

@innocenzi
Copy link
Member

This pull request adds validation support to environment variables:

env('SLACK_TOKEN', rules: [new IsNotNull(), new StartsWith('xoxb')]);

This allows userland code and third-party packages to be stricter about their expectations and avoid unexpected errors or behavior discrepancy down the line, particularly when changing environments (eg. forgetting to add an environment variable in CI or in production).

@innocenzi innocenzi merged commit f36b43b into 3.x Dec 30, 2025
74 checks passed
@innocenzi innocenzi deleted the feat/env-validation branch December 30, 2025 20:30
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