outscraper / outscraper-php

The library provides convenient access to the Outscraper API from applications written in the PHP language. Allows using Outscraper's services from your code.
https://outscraper.com/google-maps-api/
MIT License
16 stars 5 forks source link

Parse error: syntax error #4

Open Hubert9311 opened 1 year ago

Hubert9311 commented 1 year ago

When I'm trying to install via composer I got error on the line 74 unexpected '|' using php 7.49 and current version library

maevelevie commented 5 months ago

Can confirm. This library used mixed return types (e.g. string|array) that are only supported in PHP 8. That pretty much renders any version unusable for those who have to (also) support PHP 7 hosting setups. However, all versions of the package are listed as compatible with PHP >=7.4.