@@ -16,7 +16,7 @@ class Payment
1616 *
1717 * @throws Exception\ConfigurationNotSetException
1818 */
19- public static function retrieve ($ paymentId , Payplug $ payplug = null )
19+ public static function retrieve ($ paymentId , ? Payplug $ payplug = null )
2020 {
2121 return Resource \Payment::retrieve ($ paymentId , $ payplug );
2222 }
@@ -31,7 +31,7 @@ public static function retrieve($paymentId, Payplug $payplug = null)
3131 *
3232 * @throws Exception\ConfigurationNotSetException
3333 */
34- public static function abort ($ paymentId , Payplug $ payplug = null )
34+ public static function abort ($ paymentId , ? Payplug $ payplug = null )
3535 {
3636 $ payment = Resource \Payment::fromAttributes (array ('id ' => $ paymentId ));
3737 return $ payment ->abort ($ payplug );
@@ -47,7 +47,7 @@ public static function abort($paymentId, Payplug $payplug = null)
4747 *
4848 * @throws Exception\ConfigurationNotSetException
4949 */
50- public static function capture ($ paymentId , Payplug $ payplug = null )
50+ public static function capture ($ paymentId , ? Payplug $ payplug = null )
5151 {
5252 $ payment = Resource \Payment::fromAttributes (array ('id ' => $ paymentId ));
5353 return $ payment ->capture ($ payplug );
@@ -63,7 +63,7 @@ public static function capture($paymentId, Payplug $payplug = null)
6363 *
6464 * @throws Exception\ConfigurationNotSetException
6565 */
66- public static function create (array $ data , Payplug $ payplug = null )
66+ public static function create (array $ data , ? Payplug $ payplug = null )
6767 {
6868 return Resource \Payment::create ($ data , $ payplug );
6969 }
@@ -80,7 +80,7 @@ public static function create(array $data, Payplug $payplug = null)
8080 * @throws Exception\InvalidPaymentException
8181 * @throws Exception\UnexpectedAPIResponseException
8282 */
83- public static function listPayments ($ perPage = null , $ page = null , Payplug $ payplug = null )
83+ public static function listPayments ($ perPage = null , $ page = null , ? Payplug $ payplug = null )
8484 {
8585 return Resource \Payment::listPayments ($ perPage , $ page , $ payplug );
8686 }
0 commit comments