We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287d0b4 commit 93a9689Copy full SHA for 93a9689
composer.json
@@ -29,6 +29,7 @@
29
"sort-packages": true
30
},
31
"autoload": {
32
+ "files": [ "src/polyfill.php" ],
33
"classmap": [
34
"./"
35
]
src/polyfill.php
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+/**
4
+ * Polyfill for PHP < 5.4
5
+ */
6
+if (!interface_exists('JsonSerializable', false)) {
7
+ interface JsonSerializable
8
+ {
9
+ /**
10
+ * @param void
11
+ * @return mixed
12
13
+ function jsonSerialize();
14
+ }
15
+}
0 commit comments