# Error connect PHP 7.3.7 with ElasticSearch 7.2.0

**URL:** <https://discuss.elastic.co/t/error-connect-php-7-3-7-with-elasticsearch-7-2-0/189186>\
**Category:** Elasticsearch\
**Created:** [July 6, 2019, 6:07am UTC](https://discuss.elastic.co/t/error-connect-php-7-3-7-with-elasticsearch-7-2-0/189186 "2019-07-06T06:07:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amateur](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@amateur](https://discuss.elastic.co/u/amateur)\
**Post date:** [July 6, 2019, 6:07am UTC](https://discuss.elastic.co/t/error-connect-php-7-3-7-with-elasticsearch-7-2-0/189186/1 "2019-07-06T06:07:28Z")

</div>

Hola,

tengo  
-PHP 7.3.7  
-ElasticSearch 7.2.0  
-Composer 1.8.6  
Todo corre sobre un Centos 7 x86\_64

Y me aparece este error:

[Sat Jul 06 01:50:24.138270 2019] [:error] [pid 66487] [client 192.168.1.3:20614] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /var/www/html/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php on line 129  
[Sat Jul 06 01:53:43.646839 2019] [:error] [pid 66487] [client 192.168.1.3:20664] PHP Warning: Unsupported declare 'strict\_types' in /var/www/html/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php on line 3  
[Sat Jul 06 01:53:43.646983 2019] [:error] [pid 66487] [client 192.168.1.3:20664] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /var/www/html/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php on line 129

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 3, 2019, 6:10am UTC](https://discuss.elastic.co/t/error-connect-php-7-3-7-with-elasticsearch-7-2-0/189186/2 "2019-08-03T06:10:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
