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
1 Answer 1
#[\ReturnTypeWillChange] add this above the function like screenshot.
It will work
-
1Thanks. It works for Magento v2.4.6.Sergey Uskov– Sergey Uskov2023年06月02日 13:36:30 +00:00Commented Jun 2, 2023 at 13:36
Explore related questions
See similar questions with these tags.
default