Skip to content

Commit

Permalink
[fix] Fix an error with PHP 7.2.X where create_function was deprecated
Browse files Browse the repository at this point in the history
Was printing the deprecation warning on the screen.
For me the problem only appear with server side rendering. Let's see if someone
report problem with client side

Fix #392
  • Loading branch information
seblucas committed Jul 9, 2018
1 parent 2e15b4a commit 4d50b41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
echo($dot($data));
?><body>
<?php
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
if (useServerSideRendering()) {
// Get the data
$data = JSONRenderer::getJson(true);
Expand Down

0 comments on commit 4d50b41

Please sign in to comment.