ampproject / amp-toolbox-php

AMP Optimizer PHP library
Apache License 2.0
73 stars 25 forks source link

Error when using AutoExtensions transformer #503

Closed saywo closed 2 years ago

saywo commented 2 years ago

SS 2022-02-25 19 45 40

 $configurationData = [
        Configuration::KEY_TRANSFORMERS => [
          AutoExtensions::class,
          ServerSideRendering::class,
          TransformedIdentifier::class,
        ],
      ];

When I added AutoExtensions to Transformers, got an above error. Then I fixed dupilicate of $iterationArray in AmpProject/Validator/Spec/Section/Tags and it is working well.

So, could you fix this problem?

ediamin commented 2 years ago

@saywo Thanks for reporting the issue. I can reproduce this error in PHP 5.6. Are you using the same version? I'll try to fix this issue ASAP.

saywo commented 2 years ago

@ediamin Yes, I'm using the same version(PHP5.6).