@@ -34,7 +34,7 @@ class Notifications extends AbstractPackage
3434 *
3535 * @since 1.0
3636 */
37- public function getList ($ all = true , $ participating = true , \DateTimeInterface $ since = null , \DateTimeInterface $ before = null )
37+ public function getList ($ all = true , $ participating = true , ? \DateTimeInterface $ since = null , ? \DateTimeInterface $ before = null )
3838 {
3939 // Build the request path.
4040 $ path = '/notifications ' ;
@@ -81,8 +81,8 @@ public function getListRepository(
8181 $ repo ,
8282 $ all = true ,
8383 $ participating = true ,
84- \DateTimeInterface $ since = null ,
85- \DateTimeInterface $ before = null
84+ ? \DateTimeInterface $ since = null ,
85+ ? \DateTimeInterface $ before = null
8686 ) {
8787 // Build the request path.
8888 $ path = '/repos/ ' . $ owner . '/ ' . $ repo . '/notifications ' ;
@@ -116,13 +116,13 @@ public function getListRepository(
116116 * @param boolean $unread Changes the unread status of the threads.
117117 * @param boolean $read Inverse of “unread”.
118118 * @param ?\DateTimeInterface $lastReadAt Describes the last point that notifications were checked.
119- * Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 format.
119+ * Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 format.
120120 *
121121 * @return object
122122 *
123123 * @since 1.0
124124 */
125- public function markRead ($ unread = true , $ read = true , \DateTimeInterface $ lastReadAt = null )
125+ public function markRead ($ unread = true , $ read = true , ? \DateTimeInterface $ lastReadAt = null )
126126 {
127127 // Build the request path.
128128 $ path = '/notifications ' ;
@@ -152,13 +152,13 @@ public function markRead($unread = true, $read = true, \DateTimeInterface $lastR
152152 * @param boolean $unread Changes the unread status of the threads.
153153 * @param boolean $read Inverse of “unread”.
154154 * @param ?\DateTimeInterface $lastReadAt Describes the last point that notifications were checked.
155- * Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 format.
155+ * Anything updated since this time will not be updated. Default: Now. Expected in ISO 8601 format.
156156 *
157157 * @return object
158158 *
159159 * @since 1.0
160160 */
161- public function markReadRepository ($ owner , $ repo , $ unread , $ read , \DateTimeInterface $ lastReadAt = null )
161+ public function markReadRepository ($ owner , $ repo , $ unread , $ read , ? \DateTimeInterface $ lastReadAt = null )
162162 {
163163 // Build the request path.
164164 $ path = '/repos/ ' . $ owner . '/ ' . $ repo . '/notifications ' ;
0 commit comments