From 1dd50ce3c500591b76a4d7301b57b61ba35e840e Mon Sep 17 00:00:00 2001 From: Blaine Ehrhart Date: Tue, 3 Mar 2020 09:53:41 -0800 Subject: [PATCH 1/2] Updating the mapper to point to the correct class used when generating a payment --- src/Facades/FacadeClassMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Facades/FacadeClassMapper.php b/src/Facades/FacadeClassMapper.php index 5d318f25..103a55a5 100644 --- a/src/Facades/FacadeClassMapper.php +++ b/src/Facades/FacadeClassMapper.php @@ -179,7 +179,7 @@ public static function OtherAntiPatternNameEntity(){ 'OtherContact' => 'GenericContactType', 'CheckPayment' => 'BillPaymentCheck', 'CheckDetail' => 'CheckPayment', - 'CreditCardPayment' => 'BillPaymentCreditCard', + 'CreditCardPayment' => 'CreditCardPayment', 'CashBack' => 'CashBackInfo', 'ItemGroupLine' => 'ItemComponentLine', 'ItemAssemblyLine' => 'ItemComponentLine', From 4349dd5de4342801582d204ff992fccee5718b7a Mon Sep 17 00:00:00 2001 From: Chris Harding Date: Mon, 9 Jun 2025 14:27:42 -0600 Subject: [PATCH 2/2] Added check for property existing. --- src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php b/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php index addf3013..c92edb6b 100644 --- a/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php +++ b/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php @@ -130,6 +130,9 @@ public function bindXml($xml, $model) list($ns, $name) = $this->parseQName($child->nodeName, true); //$className = $this->urnToPhpName($ns)."\\".$name; try { + if (!$refl->hasProperty($name)) { + continue; + } $propertyDocs = $refl->getProperty($name)->getDocComment(); } catch (\ReflectionException $e) { throw new \RuntimeException($e->getMessage() . ". Class " . get_class($model));