Garethp / php-ews

PHP Exchange Web Services
BSD 3-Clause "New" or "Revised" License
112 stars 45 forks source link

BUG FreeBusyResponse array #245

Open ghost opened 1 year ago

ghost commented 1 year ago

https://github.com/Garethp/php-ews/blob/7920fefb0bb431cb2df0b2ba58d09330535ced6c/src/CalendarAPI.php#L307

replace ->

foreach ($availability->getFreeBusyResponseArray()->FreeBusyResponse as $responseMessage) {
            if ($responseMessage->getResponseMessage()->getResponseClass() === 'Error') {
                throw new ExchangeException($responseMessage);
            }
        }

$availability->getFreeBusyResponseArray()->FreeBusyResponse is array

nuggex commented 1 year ago

See pull request #244