-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fixes [Bug]: Incorrect connection creation #4 #13
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
20de144
Fixing connection
ineersa 0e9ca74
Fixing tests
ineersa f147c87
Lint
ineersa a02cd06
Fixed getName()
ineersa 99a7d2f
added closure
ineersa cfd7da3
Fixing connection
ineersa 75d6e53
Fixing tests
ineersa ecc333f
Lint
ineersa f2d4614
Fixed getName()
ineersa a381c8c
added closure
ineersa 672642f
Merge remote-tracking branch 'origin/fix-connection' into fix-connection
ineersa 5a76091
Merge branch 'fix-grammar' into fix-connection
ineersa e73345b
Merge branch 'main' into fix-connection
darkterminal 757c631
Merge remote-tracking branch 'origin/main' into fix-connection
ineersa 40be2f2
changes after merge
ineersa cfafa04
Merge branch 'main' into fix-connection
ineersa d0be473
Merge branch 'main' into fix-connection
darkterminal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Call to function is_null\\(\\) with Illuminate\\\\Database\\\\Schema\\\\Grammars\\\\Grammar will always evaluate to false\\.$#" | ||
count: 2 | ||
path: src/Database/LibSQLConnection.php | ||
|
||
- | ||
message: "#^Method Turso\\\\Driver\\\\Laravel\\\\Database\\\\LibSQLConnection\\:\\:getDefaultSchemaGrammar\\(\\) should return Illuminate\\\\Database\\\\Schema\\\\Grammars\\\\Grammar but returns Illuminate\\\\Database\\\\Grammar\\.$#" | ||
count: 1 | ||
path: src/Database/LibSQLConnection.php | ||
|
||
- | ||
message: "#^Return type \\(Turso\\\\Driver\\\\Laravel\\\\Database\\\\LibSQLDatabase\\) of method Turso\\\\Driver\\\\Laravel\\\\Database\\\\LibSQLConnector\\:\\:connect\\(\\) should be compatible with return type \\(PDO\\) of method Illuminate\\\\Database\\\\Connectors\\\\ConnectorInterface\\:\\:connect\\(\\)$#" | ||
count: 1 | ||
path: src/Database/LibSQLConnector.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQL has an unused parameter \\$config\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQL has an unused parameter \\$encryption_key\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQL has an unused parameter \\$flags\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLResult has an unused parameter \\$config\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLResult has an unused parameter \\$parameters\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLResult has an unused parameter \\$sql\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLStatement has an unused parameter \\$conn_id\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLStatement has an unused parameter \\$sql\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLTransaction has an unused parameter \\$conn_id\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Constructor of class LibSQLTransaction has an unused parameter \\$trx_mode\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:changes\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:execute\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:executeBatch\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:isAutocommit\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:prepare\\(\\) should return LibSQLStatement but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:query\\(\\) should return LibSQLResult but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:transaction\\(\\) should return LibSQLTransaction but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQL\\:\\:version\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLResult\\:\\:columnName\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLResult\\:\\:columnType\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLResult\\:\\:fetchArray\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLResult\\:\\:numColumns\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLStatement\\:\\:columns\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLStatement\\:\\:execute\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLStatement\\:\\:parameterCount\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLStatement\\:\\:parameterName\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLStatement\\:\\:query\\(\\) should return LibSQLResult but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLTransaction\\:\\:changes\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLTransaction\\:\\:execute\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLTransaction\\:\\:isAutocommit\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php | ||
|
||
- | ||
message: "#^Method LibSQLTransaction\\:\\:query\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/libsql_php_extension.stubs.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Again, createReadPdo() is used only in ConnectionFactory, which we are not using, and it's ConnectionFactory method, not connection.