| 1 | <?php  | 
            ||
| 12 | class ARBCreateSubscriptionRequest extends ARBSubscriptionRequest  | 
            ||
| 13 | { | 
            ||
| 14 | protected $subscription;  | 
            ||
| 15 | |||
| 16 | 1 | public function __construct(  | 
            |
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @param \CommerceGuys\AuthNet\DataTypes\Subscription $subscription  | 
            ||
| 27 | * @return $this  | 
            ||
| 28 | */  | 
            ||
| 29 | 1 | public function setSubscription(Subscription $subscription)  | 
            |
| 34 | |||
| 35 | 1 | protected function attachData(RequestInterface $request)  | 
            |
| 39 | }  | 
            ||
| 40 | 
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: