Skip to content

Commit 0d49bee

Browse files
Improve inline documentation
1 parent f5ddd0c commit 0d49bee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+256
-351
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
env:
2020
COMPOSER_VERSION: 2
2121
COVERAGE_DRIVER: xdebug
22-
MINIMUM_COVERAGE_PERCENTAGE: 80
23-
MINIMUM_MSI_PERCENTAGE: 80
22+
MINIMUM_COVERAGE_PERCENTAGE: 90
23+
MINIMUM_MSI_PERCENTAGE: 90
2424

2525
steps:
2626
- name: Checkout repository
@@ -43,6 +43,9 @@ jobs:
4343
- name: Check coverage
4444
run: php vendor/bin/coverage-check coverage/clover.xml ${{ env.MINIMUM_COVERAGE_PERCENTAGE }}
4545

46+
- name: Run end-to-end tests
47+
run: php vendor/bin/phpunit --testsuite end-to-end --no-coverage
48+
4649
- name: Run mutation tests
4750
run: XDEBUG_MODE=coverage php vendor/bin/infection --show-mutations --min-msi=${{ env.MINIMUM_MSI_PERCENTAGE }} --threads=4
4851

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
composer.lock
33
coverage/
4+
doxygen/
45
phpunit.xml
56
vendor/
67
*.idea

src/Expressions/Exists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Represents the EXISTS expression.
2020
*
21-
* @see https://neo4j.com/docs/cypher-manual/current/clauses/where/#filter-on-relationship-type
21+
* @see https://neo4j.com/docs/cypher-manual/current/clauses/where/#filter-on-relationship-type Corresponding documentation on Neo4j.com
2222
*/
2323
final class Exists implements BooleanType
2424
{

src/Expressions/Label.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@
1515

1616
/**
1717
* Represents a label. A label in Cypher would be something like "n:German" or "n:German:Swedish". Label implements
18-
* BooleanType, since it can be used in a "WHERE" clause like so:.
18+
* BooleanType, since it can be used in a "WHERE" clause.
1919
*
20-
* MATCH (n) WHERE n:label1:label2 RETURN n
21-
*
22-
* @see https://s3.amazonaws.com/artifacts.opencypher.org/openCypher9.pdf (page 85)
23-
* @see https://neo4j.com/docs/cypher-manual/current/clauses/where/#filter-on-node-label
20+
* @see https://neo4j.com/docs/cypher-manual/current/clauses/where/#filter-on-node-label Corresponding documentation on Neo4j.com
2421
*/
2522
final class Label implements BooleanType
2623
{

src/Expressions/Literals/List_.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
final class List_ implements ListType
2828
{
2929
use CastTrait;
30-
31-
use ErrorTrait;
3230
use ListTypeTrait;
3331

3432
/**
@@ -37,14 +35,13 @@ final class List_ implements ListType
3735
private array $expressions;
3836

3937
/**
40-
* @param AnyType[] $expressions The list of expressions
38+
* @param mixed[] $expressions The list of expressions
4139
*
4240
* @internal This method is not covered by the backwards compatibility promise of php-cypher-dsl
4341
*/
4442
public function __construct(array $expressions = [])
4543
{
46-
self::assertClassArray('expressions', AnyType::class, $expressions);
47-
$this->expressions = $expressions;
44+
$this->expressions = array_map([self::class, 'toAnyType'], $expressions);
4845
}
4946

5047
/**

0 commit comments

Comments
 (0)