-
Notifications
You must be signed in to change notification settings - Fork 2
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
PopSQL: add psalm, gh actions, param/return types #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. CR 🎈
Just to ask, should we think about inlining this into the monorepo? It could save a headache with integration and action?
QueryGenerator.php
Outdated
return array_keys(self::$possibleClauses); | ||
} | ||
|
||
/** | ||
* Return the primary clause in this QueryGenerator instance. | ||
* If multiple primary clauses have been set, all but the first set clause | ||
* will be ignored. | ||
* | ||
* @return string|false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't necessary. false
is a literal type now (as of 8.0):
https://php.watch/versions/8.0/union-types#false
QueryGenerator.php
Outdated
@@ -441,8 +464,10 @@ private function constructClause($method, $skipClause = false) { | |||
/** | |||
* return the appropriate glue string for the given clause, taking into | |||
* account $this->useOr | |||
* | |||
* @return string|false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
Maybe so. I think the only argument for keeping it separate is that it might be useful to the open source community, but that's probably far-fetched |
@davidrans sure. We dont have to archive it. And even if we did, it would still be publicly available. Its not widely used: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR 🫚
Closes #15
Closes #4