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

Make more use of variadic functions #95

Open
marijnvanwezel opened this issue Oct 3, 2023 · 0 comments
Open

Make more use of variadic functions #95

marijnvanwezel opened this issue Oct 3, 2023 · 0 comments
Assignees
Labels
good first issue Opportunity for newcomers to contribute to php-cypher-dsl subject/api Issues related to the public API type/enhancement New feature or request

Comments

@marijnvanwezel
Copy link
Collaborator

Variadic functions provide slightly improved readability as opposed to arrays:

Without variadic functions:

$query = query()
    ->match([$a, $b])
    ...

With variadic functions:

$query = query()
    ->match($a, $b)
    ...
@marijnvanwezel marijnvanwezel added type/enhancement New feature or request good first issue Opportunity for newcomers to contribute to php-cypher-dsl subject/api Issues related to the public API labels Oct 3, 2023
@marijnvanwezel marijnvanwezel added this to the php-cypher-dsl 7.0 milestone Oct 3, 2023
@marijnvanwezel marijnvanwezel self-assigned this Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Opportunity for newcomers to contribute to php-cypher-dsl subject/api Issues related to the public API type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant