-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop PHP 5.3 support #18
Conversation
Annoyingly PHP 5 support is still required for some. It should be working again with 5.4+ as a result of a change last year. I'll try it when I get into the office, but this one likely won't get merged in. |
0535fa7
to
02dc530
Compare
PR reworked, PHP 5.3 is EOL many years, so the support should be possible to drop in favor of better maintenance and php features. |
Thank you for this. I agree it is past time to drop 5.3 support. I have however removed the Editor::inst( $db, 'datatables_demo' )
->fields(
Field::inst( 'first_name' )
->validator( Validate::notEmpty( ValidateOptions::inst()
->message( 'A first name is required' )
) ), Than needing to surround the newly constructed class in parenthesis: (new Editor( $db, 'datatables_demo' ))
->fields(
(new Field( 'first_name' ))
->validator( Validate::notEmpty( (new ValidateOptions())
->message( 'A first name is required' )
) ), Either option is perfectly valid and I don't plan to drop the |
Thank you for the feedback. In https://github.com/DataTables/Editor-PHP/blob/2.2.2/Editor/Upload.php#L61 the IMHO |
Yeah, I take that point. The problem is I just can't see myself choosing to write code with those extra parenthesis - maybe I'd get used to them, but from other languages I'm used to |
|
DataTables\Ext::inst()
is kept, but deprecated.