-
Notifications
You must be signed in to change notification settings - Fork 1
Fix composer PHPCS dependency conflict #22
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
Closed
Closed
Changes from all commits
Commits
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 hidden or 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 hidden or 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,241 @@ | ||
| parameters: | ||
| ignoreErrors: | ||
| - | ||
| message: '#^Binary operation "\." between mixed and "\\n"\|"\\r\\n" results in an error\.$#' | ||
| identifier: binaryOp.invalid | ||
| count: 2 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Call to method get_connection\(\) on an unknown class WP_SQLite_Driver\.$#' | ||
| identifier: class.notFound | ||
| count: 2 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Call to method get_pdo\(\) on an unknown class WP_SQLite_Translator\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Call to method query\(\) on an unknown class WP_SQLite_Driver\.$#' | ||
| identifier: class.notFound | ||
| count: 2 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Call to method query\(\) on an unknown class WP_SQLite_Translator\.$#' | ||
| identifier: class.notFound | ||
| count: 2 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Class WP_SQLite_Driver not found\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Class WP_SQLite_Translator not found\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$handle of method Automattic\\WP_CLI\\SQLite\\Export\:\:write_sql_statements\(\) expects resource, resource\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#2 \$haystack of function in_array expects array, array\<string\>\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Export\:\:\$args has no type specified\.$#' | ||
| identifier: missingType.property | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Export\:\:\$driver has unknown class WP_SQLite_Driver as its type\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Export\:\:\$driver has unknown class WP_SQLite_Translator as its type\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Export\:\:\$is_stdout has no type specified\.$#' | ||
| identifier: missingType.property | ||
| count: 1 | ||
| path: src/Export.php | ||
|
|
||
| - | ||
| message: '#^Binary operation "\." between ''Converted ecoding…'' and array\|string\|false results in an error\.$#' | ||
| identifier: binaryOp.invalid | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Binary operation "\." between ''Could not execute…'' and mixed results in an error\.$#' | ||
| identifier: binaryOp.invalid | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Call to method query\(\) on an unknown class Automattic\\WP_CLI\\SQLite\\WP_SQLite_Driver\.$#' | ||
| identifier: class.notFound | ||
| count: 8 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Call to method query\(\) on an unknown class WP_SQLite_Translator\.$#' | ||
| identifier: class.notFound | ||
| count: 8 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$stream of function fclose expects resource, resource\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$stream of function fgets expects resource, resource\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$string of function mb_convert_encoding expects array\|string, mixed given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$string of function mb_detect_encoding expects string, mixed given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Import\:\:\$args has no type specified\.$#' | ||
| identifier: missingType.property | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Import\:\:\$driver \(Automattic\\WP_CLI\\SQLite\\WP_SQLite_Driver\|WP_SQLite_Translator\) does not accept WP_SQLite_Driver\|WP_SQLite_Translator\.$#' | ||
| identifier: assign.propertyType | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Import\:\:\$driver has unknown class Automattic\\WP_CLI\\SQLite\\WP_SQLite_Driver as its type\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Import\:\:\$driver has unknown class WP_SQLite_Translator as its type\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Import.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$version1 of function version_compare expects string, string\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/SQLiteDatabaseIntegrationLoader.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#2 \$subject of function preg_match expects string, string\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 2 | ||
| path: src/SQLiteDatabaseIntegrationLoader.php | ||
|
|
||
| - | ||
| message: '#^Constant FQDB not found\.$#' | ||
| identifier: constant.notFound | ||
| count: 1 | ||
| path: src/SQLiteDriverFactory.php | ||
|
|
||
| - | ||
| message: '#^Instantiated class WP_SQLite_Connection not found\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/SQLiteDriverFactory.php | ||
|
|
||
| - | ||
| message: '#^Instantiated class WP_SQLite_Driver not found\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/SQLiteDriverFactory.php | ||
|
|
||
| - | ||
| message: '#^Instantiated class WP_SQLite_Translator not found\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/SQLiteDriverFactory.php | ||
|
|
||
| - | ||
| message: '#^Method Automattic\\WP_CLI\\SQLite\\SQLiteDriverFactory\:\:create_driver\(\) has invalid return type WP_SQLite_Driver\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/SQLiteDriverFactory.php | ||
|
|
||
| - | ||
| message: '#^Method Automattic\\WP_CLI\\SQLite\\SQLiteDriverFactory\:\:create_driver\(\) has invalid return type WP_SQLite_Translator\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/SQLiteDriverFactory.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$string of function md5 expects string, int\<0, max\> given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/SQLite_Command.php | ||
|
|
||
| - | ||
| message: '#^Call to method query\(\) on an unknown class WP_SQLite_Driver\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Tables.php | ||
|
|
||
| - | ||
| message: '#^Call to method query\(\) on an unknown class WP_SQLite_Translator\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Tables.php | ||
|
|
||
| - | ||
| message: '#^Class WP_SQLite_Translator not found\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Tables.php | ||
|
|
||
| - | ||
| message: '#^Parameter \#1 \$message of static method WP_CLI\:\:line\(\) expects string, string\|false given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Tables.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Tables\:\:\$driver has unknown class WP_SQLite_Driver as its type\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Tables.php | ||
|
|
||
| - | ||
| message: '#^Property Automattic\\WP_CLI\\SQLite\\Tables\:\:\$driver has unknown class WP_SQLite_Translator as its type\.$#' | ||
| identifier: class.notFound | ||
| count: 1 | ||
| path: src/Tables.php |
This file contains hidden or 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,17 @@ | ||
| includes: | ||
| - phpstan-baseline.neon | ||
|
|
||
| parameters: | ||
| level: 9 | ||
| paths: | ||
| - src | ||
| - command.php | ||
| scanDirectories: | ||
| - vendor/wp-cli/wp-cli/php | ||
| scanFiles: | ||
| - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php | ||
| treatPhpDocTypesAsCertain: false | ||
| ignoreErrors: | ||
| - identifier: missingType.iterableValue | ||
| - identifier: missingType.parameter | ||
| - identifier: missingType.return |
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.
This is also added in main wp-cli repo: https://github.com/wp-cli/wp-cli/blob/dc880193b6f20673fae82acf07ffcb4ce32465a9/composer.json#L34