CodiceFiscale icon indicating copy to clipboard operation
CodiceFiscale copied to clipboard

array() into calculator class

Open ThunderITA opened this issue 8 years ago • 1 comments

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');

ThunderITA avatar Mar 17 '17 11:03 ThunderITA

@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.

DonCallisto avatar Oct 05 '17 16:10 DonCallisto