WebbyLab / php-validator-livr

Lightweight PHP validator supporting Language Independent Validation Rules Specification (LIVR)
45 stars 16 forks source link

Changed code to allow compatibility with PHP 5.3 #9

Closed ademlabs closed 9 years ago

ademlabs commented 9 years ago

Removed short array declarations to preserve compatibility with PHP 5.3

koorchik commented 9 years ago

Hello @arvind-d, thank you for the pull request. Syntax checking passes but tests fail due to other incompatibilities with php 5.3. The package contains unit tests, you can run them with "phpunit"

ademlabs commented 9 years ago

@koorchik, Thanks for checking! You're right the tests are not running on PHP 5.3 and I missed a few code in the Helper.php file. I'll make the modifications and make sure phpunit runs them correctly, and create a new pull request.