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

Support prepared statements type inference #44

Merged
merged 22 commits into from
Jan 9, 2022
Merged

Support prepared statements type inference #44

merged 22 commits into from
Jan 9, 2022

Conversation

staabm
Copy link
Owner

@staabm staabm commented Jan 7, 2022

No description provided.

/**
* @param callable(Node $node):bool $filter
*/
public function findFirstPreviousOfNode(Node $node, callable $filter): ?Node
Copy link
Owner Author

Choose a reason for hiding this comment

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

will hopefully be used from astral in the near fuure

deprecated-packages/symplify#3876

Copy link
Owner Author

Choose a reason for hiding this comment

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

#51

@staabm staabm changed the title Support prepared statements Support prepared statements type inference Jan 9, 2022

private function findQueryStringExpression(MethodCall $methodCall): ?Expr
{
// todo: use astral simpleNameResolver
Copy link
Owner Author

Choose a reason for hiding this comment

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

#51

@@ -4,15 +4,16 @@
"require": {
"php": "^8.0",
"ext-mysqli": "*",
"phpstan/phpstan": "^1.2"
"phpstan/phpstan": "^1.2",
"rector/rector": "^0.12.11"
Copy link
Owner Author

Choose a reason for hiding this comment

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

remove rector dependency again in #51

@staabm staabm marked this pull request as ready for review January 9, 2022 12:14
@staabm staabm merged commit 8bf38db into main Jan 9, 2022
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.

2 participants