Skip to content

Commit 4067dc4

Browse files
committed
Merge branch 'release/0.0.7'
2 parents 0266d66 + 7b5bb86 commit 4067dc4

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 1.0.7 - 2025/01/13
4+
- issue #5, pr #6 - fix call to parent class
5+
36
## 1.0.6 - 2024/12/10
47
- Add Sonar tools
58
- Minor type hinting

src/Wsdl.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,14 @@ public function getElementsByNameAndAttributes(string $name, array $attributes,
7272
}
7373

7474
/**
75-
* Handles any method that exist within the parent class,
75+
* Handles any method that exists within the parent class,
7676
* in addition it handles the case when we want to use the external schemas to search in.
7777
*
7878
* @return mixed
7979
*/
8080
protected function useParentMethodAndExternals(string $method, array $parameters, bool $includeExternals = false, bool $returnOne = false)
8181
{
82-
$result = call_user_func_array([
83-
$this,
84-
sprintf('parent::%s', $method),
85-
], $parameters);
82+
$result = parent::{$method}(...$parameters);
8683

8784
if ($includeExternals && (!$returnOne || empty($result))) {
8885
$result = $this->useExternalSchemas($method, $parameters, $result, $returnOne);
@@ -96,10 +93,7 @@ protected function useExternalSchemas(string $method, array $parameters, ?array
9693
$result = $parentResult;
9794

9895
foreach ($this->getExternalSchemas() as $externalSchema) {
99-
$externalResult = call_user_func_array([
100-
$externalSchema,
101-
$method,
102-
], $parameters);
96+
$externalResult = call_user_func_array([$externalSchema, $method], $parameters);
10397

10498
if ($returnOne && !is_null($externalResult)) {
10599
$result = $externalResult;

0 commit comments

Comments
 (0)