# PHP Notice: Indirect modification of overloaded element

**URL:** <https://discuss.elastic.co/t/php-notice-indirect-modification-of-overloaded-element/361356>\
**Category:** Elasticsearch\
**Created:** [June 12, 2024, 6:48pm UTC](https://discuss.elastic.co/t/php-notice-indirect-modification-of-overloaded-element/361356 "2024-06-12T18:48:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chongshengdz](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@chongshengdz](https://discuss.elastic.co/u/chongshengdz)\
**Post date:** [June 12, 2024, 6:48pm UTC](https://discuss.elastic.co/t/php-notice-indirect-modification-of-overloaded-element/361356/1 "2024-06-12T18:48:09Z")

</div>

end($results['hits']['hits']);  
the above line getting the below error, please help.  
PHP Notice: Indirect modification of overloaded element of Elastic\Elasticsearch\Response\Elasticsearch has no effect  
i am using elasticsearch-php version 8.13.0
