Use Array#intersection.any? for Ruby 3.0.x
What does this MR do and why?
Use Array#intersection.any? for Ruby 3.0.x
Array#intersect? was introduced in Ruby 3.1, but we still support 3.0 so we can't use it yet.
This is causing the ruby3_0 scheduled pipelines to fail.
Edited by Malcolm Locke