Code Inspection: Loop can be converted to 'array_map()' call
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the foreach
loops that can be replaced with array_map()
calls.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.