Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

DateTimeColumn PHP7.2 #812

Closed
ATr-URMA opened this issue Aug 9, 2018 · 0 comments
Closed

DateTimeColumn PHP7.2 #812

ATr-URMA opened this issue Aug 9, 2018 · 0 comments
Labels

Comments

@ATr-URMA
Copy link
Contributor

ATr-URMA commented Aug 9, 2018

Hello
I've updated my PHP Version from 7.1 to 7.2 and receive now an Error in the count() Function:

Warning: count(): Parameter must be an array or an object that implements Countable
in vendor\sg\datatablesbundle\Datatable\Column\DateTimeColumn.php (line 88)

The result is, that the table doesn't show up and i get an error message on the screen.

I can reproduce the issue on two different systems:
System1(dev):
OS: Windows Server 2012 R2
Webserver: PHP CLI
PHP version: 7.2.7
Symfony: 3.4.14
Datatables Bundle: 1.0.4

System2(prod):
OS: freeBSD 10.1
Webserver: Apache 2.4
PHP version: 7.2.7
Symfony: 3.2.13
Datatables Bundle: 1.0.1

When i switch back to PHP 7.1.19, the error disapperas and application is working.
Is it possible to make it work with PHP 7.2?

Best Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants