@@ -109,7 +109,7 @@ public function getWriter(): Writer
109109 *
110110 * @return array|object|string
111111 */
112- public function parse ($ input , string $ contextUri = null , string &$ rootElementName = null )
112+ public function parse ($ input , ? string $ contextUri = null , ? string &$ rootElementName = null )
113113 {
114114 if (is_resource ($ input )) {
115115 // Unfortunately the XMLReader doesn't support streams. When it
@@ -153,7 +153,7 @@ public function parse($input, string $contextUri = null, string &$rootElementNam
153153 *
154154 * @return array|object|string
155155 */
156- public function expect ($ rootElementName , $ input , string $ contextUri = null )
156+ public function expect ($ rootElementName , $ input , ? string $ contextUri = null )
157157 {
158158 if (is_resource ($ input )) {
159159 // Unfortunately the XMLReader doesn't support streams. When it
@@ -204,7 +204,7 @@ public function expect($rootElementName, $input, string $contextUri = null)
204204 *
205205 * @return string
206206 */
207- public function write (string $ rootElementName , $ value , string $ contextUri = null )
207+ public function write (string $ rootElementName , $ value , ? string $ contextUri = null )
208208 {
209209 $ w = $ this ->getWriter ();
210210 $ w ->openMemory ();
@@ -266,7 +266,7 @@ public function mapValueObject(string $elementName, string $className)
266266 *
267267 * @throws \InvalidArgumentException
268268 */
269- public function writeValueObject ($ object , string $ contextUri = null )
269+ public function writeValueObject ($ object , ? string $ contextUri = null )
270270 {
271271 if (!isset ($ this ->valueObjectMap [get_class ($ object )])) {
272272 throw new \InvalidArgumentException ('" ' .get_class ($ object ).'" is not a registered value object class. Register your class with mapValueObject. ' );
0 commit comments