Skip to content

Commit

Permalink
Bugfix: properly deal with optional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Oct 3, 2024
1 parent 167df65 commit 98778c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XML/wsdl/AbstractPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ abstract class AbstractPart extends AbstractExtensibleAttributesDocumented
*/
public function __construct(
protected string $name,
protected ?string $element,
protected ?string $type,
protected ?string $element = null,
protected ?string $type = null,
array $attributes = [],
) {
Assert::validNCName($name, SchemaViolationException::class);
Expand Down

0 comments on commit 98778c9

Please sign in to comment.