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 /
Ronak Rathod
6,58020 silver badges46 bronze badges
asked Jan 23, 2023 at 20:10

1 Answer 1

3

enter image description here

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

It will work

answered Feb 6, 2023 at 12:47
1
  • 1
    Thanks. It works for Magento v2.4.6. Commented Jun 2, 2023 at 13:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.