andreausu / CodiceFiscale

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

Example doesn't work! #8

Closed periloso closed 10 years ago

periloso commented 10 years ago

I've tried the example code as written in the README, but it doesn't work. Here's the problem: the code written is $calc->('Nome', 'Cognome', 'M', new \DateTime('1992-03-06') 'F205');

but should be instead: $calc->calcola('Nome', 'Cognome', 'M', new \DateTime('1992-03-06'), 'F205');

The function name "calcola" is missing, and there isn't a comma "," before 'F205'. Except that, it seems to magically work... thanks! :)

andreausu commented 10 years ago

Fixed, thanks :)