File tree Expand file tree Collapse file tree 6 files changed +12
-11
lines changed Expand file tree Collapse file tree 6 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ protected function executeCheckout(PaymentMethodInterface $paymentMethod): \Symf
938938        $ PaymentResult$ paymentMethodcheckout ();
939939        $ response$ PaymentResultgetResponse ();
940940        // PaymentResultがresponseを保持している場合はresponseを返す 
941-         if  ($ responseisRedirection () || $ responseisSuccessful ()) {
941+         if  ($ response && ( $ response isRedirection () || $ responseisSuccessful () )) {
942942            $ this entityManager ->flush ();
943943            log_info ('[注文処理] PaymentMethod::checkoutが指定したレスポンスを表示します. ' );
944944
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ public function setUsePoint($usePoint): static;
119119    /** 
120120     * 利用ポイントを返します. 
121121     * 
122-      * @return string 
122+      * @return string|null  
123123     */ 
124-     public  function  getUsePoint (): string ;
124+     public  function  getUsePoint (): ? string ;
125125
126126    /** 
127127     * @param ItemInterface $item 
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ public function setUsePoint($usePoint): static
7272    /** 
7373     * Get usePoint 
7474     * 
75-      * @return string 
75+      * @return string|null  
7676     */ 
77-     public  function  getUsePoint (): string 
77+     public  function  getUsePoint (): ? string 
7878    {
7979        return  $ this use_point ;
8080    }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Tag extends AbstractEntity implements \Stringable
3939        #[\Override]
4040        public  function  __toString (): string 
4141        {
42-             return  $ this getName ();
42+             return  $ this getName () ??  '' ;
4343        }
4444
4545        /** 
@@ -123,9 +123,9 @@ public function setName($name): static
123123        /** 
124124         * Get name. 
125125         * 
126-          * @return string 
126+          * @return string|null  
127127         */ 
128-         public  function  getName (): string 
128+         public  function  getName (): ? string 
129129        {
130130            return  $ this name ;
131131        }
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ public function setResponse(Response $response): PaymentResult
106106    /** 
107107     * Response を返します. 
108108     * 
109-      * @return Response 
109+      * @return Response|null  
110110     */ 
111-     public  function  getResponse (): Response 
111+     public  function  getResponse (): ? Response 
112112    {
113113        return  $ this response ;
114114    }
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ public function testRoutingHelpTradelaw()
2222    {
2323        $ client$ this client ;
2424        $ clientrequest ('GET ' , $ this generateUrl ('help_tradelaw ' ));
25-         $ this assertTrue ($ clientgetResponse ()->isSuccessful ());
25+         $ response$ clientgetResponse ();
26+         $ this assertTrue ($ responseisSuccessful (), 'Response status:  ' .$ responsegetStatusCode ().' - Content:  ' .$ responsegetContent ());
2627    }
2728
2829    /** 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments