andreausu / CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)
MIT License
23 stars 14 forks source link

array() into calculator class #10

Open ThunderITA opened 7 years ago

ThunderITA commented 7 years ago

I try, but php give me error. PHP not accept: private $var = [array]; I find this issue in /src/CodiceFiscale/Calculator.php

I change in caluator class all private vars:

private $mesi = ['A', 'B', 'C', 'D', 'E', 'H', 'L', 'M', 'P', 'R', 'S', 'T']; to private $mesi = array('A', 'B', 'C', 'D', 'E', 'H', 'L', 'M', 'P', 'R', 'S', 'T');

DonCallisto commented 6 years ago

@ThunderITA you need PHP >= 5.4 as stated in composer.

I'm pretty sure you don't manage this with composer, otherwise you won't be able to download it.