Restore patterns key for mangler

Causes PHP warnings at minimum

Change-Id: I86d4f86e4445ab2e0226cd5609d300680d98e989