# Argument 2 of service “twig.command.lint” is abstract: File name pattern

**URL:** <https://forum.mautic.org/t/argument-2-of-service-twig-command-lint-is-abstract-file-name-pattern/35361>\
**Category:** Mautic 6 Install/Upgrade Support\
**Created:** [March 26, 2025, 1:29pm UTC](https://forum.mautic.org/t/argument-2-of-service-twig-command-lint-is-abstract-file-name-pattern/35361 "2025-03-26T13:29:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [March 26, 2025, 1:29pm UTC](https://forum.mautic.org/t/argument-2-of-service-twig-command-lint-is-abstract-file-name-pattern/35361/1 "2025-03-26T13:29:45Z")

</div>

I’m upgrading my 5.2.1 installation to 6.0.0 with the composer method documented here: [How to update Mautic — Mautic Documentation 0.1 documentation](https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html#updating-mautic-composer-based-installs) . php version is 8.1.31.

After running `php bin/console cache:clear` about any bin/console command fails with this message:

> In PhpDumper.php line 1969:  
> Argument 2 of service “twig.command.lint” is abstract: File name pattern

Screenshot:

![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/80b1e658b8a9a0463cdd1b523b8974d05c3f3630.png)

---

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [May 6, 2025, 6:07pm UTC](https://forum.mautic.org/t/argument-2-of-service-twig-command-lint-is-abstract-file-name-pattern/35361/2 "2025-05-06T18:07:07Z")

</div>

I still have this issue. Trying to upgrade from 5.2.5 to 6.0.1:

```auto
php bin/console cache:clear --no-warmup

In PhpDumper.php line 1969:
                                                                             
  Argument 2 of service "twig.command.lint" is abstract: File name pattern.  
                                                                             

```

---

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [May 6, 2025, 6:33pm UTC](https://forum.mautic.org/t/argument-2-of-service-twig-command-lint-is-abstract-file-name-pattern/35361/3 "2025-05-06T18:33:38Z")

</div>

Deleting everything and restoring config/local.php did work around my issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [May 8, 2025, 6:34am UTC](https://forum.mautic.org/t/argument-2-of-service-twig-command-lint-is-abstract-file-name-pattern/35361/4 "2025-05-08T06:34:30Z")

</div>

Closed on May 8, 2025, 6:34am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
