diff --git a/phpstan/baseline-8.1.neon b/phpstan/baseline-8.1.neon index 12bfc559b..b22aed2f6 100644 --- a/phpstan/baseline-8.1.neon +++ b/phpstan/baseline-8.1.neon @@ -120,16 +120,6 @@ parameters: count: 1 path: ../src/Composer/Installer/BinaryInstaller.php - - - message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, int\\\\|int\\<2, max\\>\\|string given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Parameter \\#2 \\$handler of function pcntl_signal expects \\(callable\\(\\)\\: mixed\\)\\|int, int\\|string given\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Only numeric types are allowed in \\-, int\\|false given on the left side\\.$#" count: 1 @@ -190,11 +180,6 @@ parameters: count: 15 path: ../src/Composer/Util/Git.php - - - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/GitHub.php - - message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, string\\|null given\\.$#" count: 2 diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index ce404836c..04cb1296d 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -345,11 +345,6 @@ parameters: count: 1 path: ../src/Composer/Command/CreateProjectCommand.php - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Command/CreateProjectCommand.php - - message: "#^Parameter \\#3 \\$existingRepos of static method Composer\\\\Repository\\\\RepositoryFactory\\:\\:generateRepositoryName\\(\\) expects array\\, array\\ given\\.$#" count: 1 @@ -1260,11 +1255,6 @@ parameters: count: 2 path: ../src/Composer/Console/Application.php - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" count: 1 @@ -2610,11 +2600,6 @@ parameters: count: 2 path: ../src/Composer/Installer/InstallationManager.php - - - message: "#^Constant PHP_WINDOWS_EVENT_CTRL_C not found\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 @@ -2625,11 +2610,6 @@ parameters: count: 2 path: ../src/Composer/Installer/InstallationManager.php - - - message: "#^Function sapi_windows_set_ctrl_handler not found\\.$#" - count: 3 - path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Only booleans are allowed in &&, Composer\\\\EventDispatcher\\\\EventDispatcher\\|null given on the right side\\.$#" count: 2 @@ -2680,21 +2660,11 @@ parameters: count: 1 path: ../src/Composer/Installer/InstallationManager.php - - - message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, int\\\\|int\\<2, max\\>\\|string given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Parameter \\#1 \\$onFulfilled of method React\\\\Promise\\\\PromiseInterface\\:\\:then\\(\\) expects \\(callable\\(\\)\\: mixed\\)\\|null, React\\\\Promise\\\\PromiseInterface given\\.$#" count: 1 path: ../src/Composer/Installer/InstallationManager.php - - - message: "#^Parameter \\#2 \\$handle of function pcntl_signal expects \\(callable\\(\\)\\: mixed\\)\\|int, int\\|string given\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Parameter \\#2 \\$offset of function array_splice expects int, int\\|string given\\.$#" count: 1 @@ -3355,21 +3325,11 @@ parameters: count: 1 path: ../src/Composer/Package/Version/VersionParser.php - - - message: "#^Only booleans are allowed in &&, array\\\\> given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" count: 1 path: ../src/Composer/Package/Version/VersionSelector.php - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" count: 1 @@ -3437,7 +3397,7 @@ parameters: - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\InstalledRepositoryInterface\\|null given\\.$#" - count: 2 + count: 1 path: ../src/Composer/Plugin/PluginManager.php - @@ -4558,21 +4518,11 @@ parameters: count: 2 path: ../src/Composer/Util/GitHub.php - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Util/GitHub.php - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" count: 1 path: ../src/Composer/Util/GitHub.php - - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/GitHub.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" count: 2 @@ -4585,7 +4535,7 @@ parameters: - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 + count: 1 path: ../src/Composer/Util/GitLab.php -