Skip to content

Commit f06ca27

Browse files
Minor fixes to typing, move AliasTest class
1 parent 406bf1e commit f06ca27

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function create($patterns): self
313313
/**
314314
* Creates the DELETE clause.
315315
*
316-
* @param Variable|Variable[] $nodes The nodes to delete
316+
* @param Variable|Variable[] $variables The nodes to delete
317317
*
318318
* @return $this
319319
* @see https://neo4j.com/docs/cypher-manual/current/clauses/delete/
@@ -608,7 +608,7 @@ public function with($expressions): self
608608
* @param string $subject The subject/body of the clause
609609
* @return Query
610610
*/
611-
public function raw(string $clause, string $subject)
611+
public function raw(string $clause, string $subject): self
612612
{
613613
$this->clauses[] = new RawClause($clause, $subject);
614614

src/Traits/HasPropertiesTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ trait HasPropertiesTrait
3838
* @param string $key The name of the property
3939
* @param AnyType $value The value of the property
4040
*
41-
* @return HasPropertiesType
41+
* @return static
4242
*/
43-
public function withProperty(string $key, AnyType $value): HasPropertiesType
43+
public function withProperty(string $key, AnyType $value): self
4444
{
4545
$this->initialiseProperties();
4646

@@ -54,9 +54,9 @@ public function withProperty(string $key, AnyType $value): HasPropertiesType
5454
*
5555
* @param PropertyMap|array $properties
5656
*
57-
* @return HasPropertiesType
57+
* @return static
5858
*/
59-
public function withProperties($properties): HasPropertiesType
59+
public function withProperties($properties): self
6060
{
6161
self::assertClass('properties', [PropertyMap::class, 'array'], $properties);
6262

tests/AliasTest.php renamed to tests/Unit/AliasTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
22

3-
namespace WikibaseSolutions\CypherDSL\Tests;
3+
namespace WikibaseSolutions\CypherDSL\Tests\Unit;
44

55
use PHPUnit\Framework\TestCase;
66
use WikibaseSolutions\CypherDSL\Alias;
7-
use WikibaseSolutions\CypherDSL\Tests\Unit\TestHelper;
87
use WikibaseSolutions\CypherDSL\Variable;
98

9+
/**
10+
* @covers \WikibaseSolutions\CypherDSL\Alias
11+
*/
1012
class AliasTest extends TestCase
1113
{
1214
use TestHelper;

0 commit comments

Comments
 (0)