0

How to fix below error.

PHP Fatal error:  During inheritance of IteratorAggregate: Uncaught Exception: Deprecated Functionality: 
Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): 
Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /

1 Answer 1

3

enter image description here

#[\ReturnTypeWillChange] add this above the function like screenshot.

It will work

1
  • 1
    Thanks. It works for Magento v2.4.6. Commented Jun 2, 2023 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.