src/Event.php
private function process(&$details) {
        foreach ($details as &$value) {
            if (is_array($value)) {
                $this->process($value);
                continue;
            }
            if ($value instanceof \DateTime) {
                $value = $value->format(\DateTime::ISO8601);
                continue;
            }
        }
    }
private function process(&$details) {
        foreach ($details as &$value) {
            if (is_array($value)) {
                $this->process($value);
                continue;
            }
            if ($value instanceof \DateTime) {
                $value = $value->format(\DateTime::ISO8601);
                continue;
            }
        }
    }
private function process ( & $ details ) { foreach ( $ details as & $ value ) { if ( is_array ( $ value ) ) { $ this -> process ( $ value ) ; continue ; } if ( $ value instanceof \ DateTime ) { $ value = $ value -> format ( \ DateTime :: ISO8601 ) ; continue ; } } }
Recursively converts any nested DateTime instances to ISO8601 strings
in preparation for serialization. Note, mutates the supplied array.
@param array Properties to convert.
Recursively converts any nested DateTime instances to ISO8601 strings in preparation for serialization . Note mutates the supplied array .