From 708861461051824b558612a2de05157f5f333c55 Mon Sep 17 00:00:00 2001
From: Matt Trefilek <matthew.trefilek@wisc.edu>
Date: Fri, 6 Oct 2017 15:55:39 -0500
Subject: [PATCH] Passing in reasons array instead of string

---
 src/main/edu/wisc/doit/RpcNetidClientSoap.php               | 4 ++--
 src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/edu/wisc/doit/RpcNetidClientSoap.php b/src/main/edu/wisc/doit/RpcNetidClientSoap.php
index 1680ab2..1e21501 100644
--- a/src/main/edu/wisc/doit/RpcNetidClientSoap.php
+++ b/src/main/edu/wisc/doit/RpcNetidClientSoap.php
@@ -297,11 +297,11 @@ class RpcNetidClientSoap implements RpcNetidClient {
 		}
 		
 		if( $result->result === 400){
-			return new RpcNetidStructValidationResponse(false, $result->Reasons->Reason );
+			return new RpcNetidStructValidationResponse(false, $result->Reasons );
 		}
 		
 		if( $result->result === 401){
-			return new RpcNetidStructValidationResponse(false, $result->Reasons->Reason );
+			return new RpcNetidStructValidationResponse(false, $result->Reasons  );
 		}
 		
 		throw new RpcNetidClientSoapException("Unexpected status code: {$result->result}",
diff --git a/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php b/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php
index 729d61c..48b6741 100644
--- a/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php
+++ b/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php
@@ -22,7 +22,7 @@ class RpcNetidStructValidationResponse {
 	
 	/**
 	 * @param bool $isValid
-	 * @param string $reason
+	 * @param array $reasons the array of Reason(s) for why the SOAP Call failed
 	 */
 	function __construct( $isValid, array $reasons ) {
 		$this->setIsValid( $isValid );
-- 
GitLab