Skip to content

Commit

Permalink
Update parameter type in getNodeProps function
Browse files Browse the repository at this point in the history
The type of the first argument in the getNodeProps function of DrawDiagram.php has been updated from SemanticDescriptor to AbstractDescriptor. This change broadens the type of the descriptor that can be processed by this method, increasing its flexibility.
  • Loading branch information
koriym committed Jun 1, 2024
1 parent 8cbca28 commit cd4f9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DrawDiagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function getNode(AbstractDescriptor $descriptor, LabelNameInterface $lab
*
* @return list<string>
*/
private function getNodeProps(SemanticDescriptor $descriptor, LabelNameInterface $labelName, array $descriptors): array
private function getNodeProps(AbstractDescriptor $descriptor, LabelNameInterface $labelName, array $descriptors): array
{
$props = [];
assert(is_iterable($descriptor->descriptor));
Expand Down

0 comments on commit cd4f9f1

Please sign in to comment.