rdohms/dms-filter-bundle

Special Class Constant Not Available in < PHP55

Closed this issue · 1 comments

Hi,

Pulled the V3.1 release of this code and ran into an error on PHP54.

Packagist states that this Requires:
- php: >=5.3.2

However in the class; DMS\Bundle\FilterBundle\Form\Type\FormTypeFilterExtension
Line 78

You are using this syntax:
return FormType::class;

This is only available in >PHP55 versions.

https://secure.php.net/manual/en/language.oop5.constants.php

The special ::class constant are available as of PHP 5.5.0, and allows for fully qualified class name resolution at compile, this is useful for namespaced classes:

@jackwilsontotemic good catch.
I have released a patch release that should now work.

But we will no longer maintain these versions.