-
Notifications
You must be signed in to change notification settings - Fork 746
Error: undefined method 'first_param' for an instance of Array with Ruby 3.4.1 #1909
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
Comments
Yeah, the same issue for bundle exec brakeman --rails7
Error: undefined method 'first_param' for an instance of Array
Location: /home/alex/.rvm/gems/ruby-3.4.1@autumn-leaves-v2/gems/brakeman-7.0.0/lib/brakeman/processors/template_alias_processor.rb:88:in 'Brakeman::TemplateAliasProcessor#process_iter' Ruby 3.4.1 |
As linked above, this is a Prism issue, is fixed in Prism, and I assume will be part of the next Prism release. |
So this is an |
I've upgraded to the latest version of ruby (3.4.3), prism (1.4.0) and brakeman (7.0.2) and this issue persists.
The workaround, as others have mentioned, is to run brakeman with the |
Background
Brakeman version: 7.0.0
Rails version: 8.0.1
Ruby version: 3.4.1
Link to Rails application code: https://github.com/greendrop/ruby_3_4_1_rails_8_0_1_brakeman_7_0_0
Issue
Using
it
in an erb file causes an error with Ruby 3.4.1.If I didn't use
it
or set it to--no-prism
, no error occurred.Other Error
Run Brakeman with
--debug
to see the full stack trace.Stack trace:
The text was updated successfully, but these errors were encountered: