Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea]New Rule -$context is only Constant Array #60

Open
sasezaki opened this issue Oct 21, 2023 · 0 comments
Open

[Idea]New Rule -$context is only Constant Array #60

sasezaki opened this issue Oct 21, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@sasezaki
Copy link
Member

Do not allow non-key array (non array-shapes $context)

// bad

/**
 * @param array $param
 */
function foo(array $param) {
   $logger->info('message', ['user_id' => $userId] + $param);
}
@sasezaki sasezaki added enhancement New feature or request good first issue Good for newcomers Major new features 🚀 and removed enhancement New feature or request labels Oct 21, 2023
@sasezaki sasezaki added help wanted Extra attention is needed and removed Major new features 🚀 labels Feb 10, 2024
@sasezaki sasezaki changed the title New Rule -$context is only Constant Array [Idea]New Rule -$context is only Constant Array Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant