Wrap in array if needed
1 unresolved thread
1 unresolved thread
This seems very hacky, so I am okay finding a different solution, but it maintains the structure and passes all tests.
Merge request reports
Activity
25 25 * @param array $reasons the array of a Reason for why the SOAP Call failed 26 26 */ 27 27 function __construct( $isValid, array $reasons ) { 28 $this->setIsValid( $isValid ); 28 if(gettype($reasons) == "array") { 29 $this->setIsValid( $isValid ); 30 } else { 31 $this->setIsValid(array( $isValid) ); mentioned in commit b299ce8b
Please register or sign in to reply