@@ -22,7 +22,7 @@ class API
2222 'version ' => ExchangeWebServices::VERSION_2010
2323 );
2424
25- public function __construct (ExchangeWebServices $ client = null )
25+ public function __construct (? ExchangeWebServices $ client = null )
2626 {
2727 if ($ client ) {
2828 $ this ->setClient ($ client );
@@ -180,7 +180,7 @@ public function updateItems($items, $options = array())
180180 return Utilities \ensureIsArray ($ response );
181181 }
182182
183- public function createCalendars ($ names , BaseFolderIdType $ parentFolder = null , $ options = array ())
183+ public function createCalendars ($ names , ? BaseFolderIdType $ parentFolder = null , $ options = array ())
184184 {
185185 if ($ parentFolder === null ) {
186186 $ parentFolder = $ this ->getDistinguishedFolderId ('calendar ' );
@@ -189,7 +189,7 @@ public function createCalendars($names, BaseFolderIdType $parentFolder = null, $
189189 return $ this ->createFolders ($ names , $ parentFolder , $ options , 'IPF.Appointment ' );
190190 }
191191
192- public function createContactsFolder ($ names , BaseFolderIdType $ parentFolder = null , $ options = array ())
192+ public function createContactsFolder ($ names , ? BaseFolderIdType $ parentFolder = null , $ options = array ())
193193 {
194194 if ($ parentFolder === null ) {
195195 $ parentFolder = $ this ->getDistinguishedFolderId ('contacts ' );
0 commit comments