Skip to content

Commit 70bd915

Browse files
committed
General maintenance.
1 parent c0ecbcb commit 70bd915

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"authors": [
88
{
99
"name": "Syndesi (Sören Klein)",
10-
"email": "[email protected]",
11-
"homepage": "https://syndesi.dev",
12-
"role": "Developer"
10+
"email": "[email protected]"
1311
}
1412
],
1513
"keywords": [
@@ -32,15 +30,16 @@
3230
}
3331
},
3432
"require-dev": {
35-
"vimeo/psalm": "^4.23",
33+
"vimeo/psalm": "^5.0",
3634
"boesing/psalm-plugin-stringf": "^1.1",
3735
"phpstan/phpstan": "^1.6",
3836
"phpunit/php-code-coverage": "^9.2",
39-
"infection/infection": "^0.26.10",
37+
"infection/infection": "^0.27.0",
4038
"friendsofphp/php-cs-fixer": "^3.8",
4139
"phpunit/phpunit": "^9.5",
4240
"roave/no-leaks": "^1.3",
43-
"phpbench/phpbench": "^1.2"
41+
"phpbench/phpbench": "^1.2",
42+
"infection/codeception-adapter": "^0.4.2"
4443
},
4544
"scripts": {
4645
"test": "php vendor/phpunit/phpunit/phpunit",

src/Type/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function addRelation(RelationInterface $relation): self
8383
}
8484

8585
$ownIdentifyingString = ToStringHelper::nodeToString($this, true);
86-
if (ToStringHelper::nodeToString($startNode, true) !== $ownIdentifyingString &&
87-
ToStringHelper::nodeToString($endNode, true) !== $ownIdentifyingString
86+
if (ToStringHelper::nodeToString($startNode, true) !== $ownIdentifyingString
87+
&& ToStringHelper::nodeToString($endNode, true) !== $ownIdentifyingString
8888
) {
8989
throw new InvalidArgumentException("Adding a relation to a node requires that either the start node or the end node must be the same as the node itself.");
9090
}

0 commit comments

Comments
 (0)