jzonta / FakerRestaurant

Food and Beverage names generate using fakerphp/faker
MIT License
90 stars 38 forks source link

Short array syntax is allowed in php 5.4 Only.. #12

Closed henri9813 closed 5 years ago

henri9813 commented 5 years ago

Hello,

I just update my forked version and i got this in phpStorm.

I will propose a PR this day to fix this.

image

Regards

jzonta commented 5 years ago

This is not a syntax error, version 5.4 of php already supports array creation in this way.

See the documentation: https://secure.php.net/manual/en/language.types.array.php

vishwakarma09 commented 3 years ago

@henri9813 in composer.json file, increase the php required version from <5.4 to something more recent like 7.2

"require": {