Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some bugfixes #50

Closed
wants to merge 1 commit into from
Closed

some bugfixes #50

wants to merge 1 commit into from

Conversation

smoench
Copy link

@smoench smoench commented Sep 18, 2020

related to qossmic/deptrac#373

@@ -320,7 +320,7 @@ public function createScript(Graph $graph)

// add all edges as directed edges
foreach ($graph->getEdges() as $currentEdge) {
$both = $currentEdge->getVertices()->getVector();
$both = $currentEdge->getVertices();
$currentStartVertex = $both[0];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about following instead?

$currentStartVertex = $currentEdge->getVerticesStart()[0];
$currentTargetVertex = $currentEdge->getVerticesTarget()[0];

@@ -306,7 +306,7 @@ public function createScript(Graph $graph)
$vid = $vids[\spl_object_hash($vertex)];
$layout = $this->getLayoutVertex($vertex, $vid);

if ($layout || $vertex->getEdges()->isEmpty()) {
if ($layout || [] === $vertex->getEdges()) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we drop PHP 5.3 support? 🙈

@clue
Copy link
Member

clue commented Jan 4, 2022

@smoench Thank you very much for looking into this, updating to the latest development version makes perfect sense!

I've just filed #58 which contains similar changes and also improves compatibility with all supported versions.

Keep it up 👍

@smoench smoench deleted the patch-1 branch January 4, 2022 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants