mirror of
https://github.com/moodle/moodle.git
synced 2025-07-19 13:21:42 +02:00
No changes from the upstream version have been made, it is recommended by upstream to install these depdencies via composer - but the composer installation is bundled with a load of test files, shell scripts etc (and we don't use composer to manage 'production dependencies') so we have to do it manually.
28 lines
535 B
PHP
28 lines
535 B
PHP
<?php
|
|
|
|
namespace GeoIp2\Compat;
|
|
|
|
// @codingStandardsIgnoreFile
|
|
|
|
/**
|
|
* This interface exists to provide backwards compatibility with PHP 5.3
|
|
*
|
|
* This should _not_ be used by any third-party code.
|
|
*
|
|
* @ignore
|
|
*/
|
|
if (interface_exists('JsonSerializable')) {
|
|
interface JsonSerializable extends \JsonSerializable
|
|
{
|
|
}
|
|
} else {
|
|
interface JsonSerializable
|
|
{
|
|
/**
|
|
* Returns data that can be serialized by json_encode
|
|
* @ignore
|
|
*/
|
|
public function jsonSerialize();
|
|
}
|
|
}
|