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

PopSQL: add psalm, gh actions, param/return types #16

Merged
merged 16 commits into from
Aug 21, 2024

Conversation

davidrans
Copy link
Member

Closes #15
Closes #4

djmetzle
djmetzle previously approved these changes Aug 20, 2024
Copy link

@djmetzle djmetzle left a 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?

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

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

@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@davidrans
Copy link
Member Author

should we think about inlining this into the monorepo?

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

@djmetzle
Copy link

@davidrans sure. We dont have to archive it. And even if we did, it would still be publicly available.

Its not widely used:
image
(and id bet a dollar that at least one of those forks is an iFixiter)

Copy link

@djmetzle djmetzle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR 🫚

@davidrans davidrans merged commit 13f6e14 into master Aug 21, 2024
4 checks passed
@davidrans davidrans deleted the gh-actions-php-8-3 branch August 21, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Types: Add return types and arg types Ordering is backwards in assertSame() and assertEquals()
2 participants