robertogallea / laravel-codicefiscale

Codice fiscale validation for php/laravel
MIT License
42 stars 16 forks source link

Prevent "Creation of dynamic property" (Deprecated on PHP 8.2) #57

Closed caiojhonny closed 1 year ago

caiojhonny commented 1 year ago

Hello Roberto,

With the new changes I forgot to declare the "monthPart" variable and this generates a new alert:

DEPRECATED Creation of dynamic property robertogallea\LaravelCodiceFiscale\CodiceFiscale::$monthPart is deprecated in vendor/robertogallea/laravel-codicefiscale/src/CodiceFiscale.php on line 154.

I corrected and tested, thank you

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

robertogallea commented 1 year ago

I remove the field $this->monthPart and used just $monthPart local variable.

Thank you again