diff --git a/core/modules/filter/migration_templates/d6_filter_format.yml b/core/modules/filter/migration_templates/d6_filter_format.yml
index 16982d3..abfb0f2 100644
--- a/core/modules/filter/migration_templates/d6_filter_format.yml
+++ b/core/modules/filter/migration_templates/d6_filter_format.yml
@@ -34,8 +34,6 @@ process:
             - filter_url
             - filter_htmlcorrector
             - filter_html_escape
-          php:
-            - php_code
       settings: settings
       status:
         plugin: default_value
diff --git a/core/modules/filter/migration_templates/d7_filter_format.yml b/core/modules/filter/migration_templates/d7_filter_format.yml
index 01f820c..bd3f637 100755
--- a/core/modules/filter/migration_templates/d7_filter_format.yml
+++ b/core/modules/filter/migration_templates/d7_filter_format.yml
@@ -8,6 +8,20 @@ process:
   format: format
   name: name
   cache: cache
-  filters: filters
+  filters:
+    plugin: iterator
+    source: filters
+    key: @id
+    process:
+      id:
+        plugin: static_map
+        bypass: true
+        source: name
+        map:
+          php_code: filter_null
+      settings: settings
+      status:
+        plugin: default_value
+        default_value: true
 destination:
   plugin: entity:filter_format
