Skip to content

Conversation

@smoench
Copy link

@smoench smoench commented Sep 18, 2020

related to deptrac/deptrac#373

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];

$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