Skip to content

Commit b546c5e

Browse files
Update dependency rector/rector to v1 (#201)
* Update dependency rector/rector to v1 * Update code for PHP 8.3 tests * Use strict comparison (=== not ==) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Märt Matsoo <mart@chromatichq.com>
1 parent d70e901 commit b546c5e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"phpstan/extension-installer": "^1.1",
2323
"phpcompatibility/php-compatibility": "^9.3",
2424
"guzzlehttp/guzzle": "^5.0 || ^6.0 || ^7.0",
25-
"rector/rector": "^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0"
25+
"rector/rector": "^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^1.0.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

src/Robo/Plugin/Commands/DevelopmentModeCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function databaseRefreshDdev(string $siteName = 'default', array $options
146146
$this->say("Importing $dbPath");
147147
$this->taskExec(LocalDevEnvironmentTypes::DDEV->value)
148148
->arg('import-db')
149-
->option('database', $siteName == 'default' ? 'db' : $siteName)
149+
->option('database', $siteName === 'default' ? 'db' : $siteName)
150150
->option('file', $dbPath)
151151
->run();
152152

src/Robo/Plugin/Commands/DrupalStatusReportCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function drupalStatusReport(
8686
->dir("$this->drupalRoot/sites/$siteDir/")
8787
->printOutput(false)
8888
->run();
89-
$drushOutput = trim($result->getOutputData());
89+
$drushOutput = trim((string) $result->getOutputData());
9090
$reportJson = json_decode($drushOutput, null, 512, JSON_THROW_ON_ERROR);
9191
if (!is_array($reportJson) || $reportJson !== []) {
9292
$this->say($drushOutput);

src/Robo/Plugin/Commands/ValidateConfigCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function validateDrupalConfig(
8080
->dir("$this->drupalRoot/sites/$siteDir/")
8181
->printOutput(false)
8282
->run();
83-
$drushOutput = trim($result->getOutputData());
83+
$drushOutput = trim((string) $result->getOutputData());
8484
$configJson = json_decode($drushOutput, null, 512, JSON_THROW_ON_ERROR);
8585
if (!is_array($configJson) || $configJson !== []) {
8686
$this->say($drushOutput);

0 commit comments

Comments
 (0)