Skip to content

Commit

Permalink
Update dependency rector/rector to v1 (#201)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and mmatsoo authored Mar 19, 2024
1 parent d70e901 commit b546c5e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"phpstan/extension-installer": "^1.1",
"phpcompatibility/php-compatibility": "^9.3",
"guzzlehttp/guzzle": "^5.0 || ^6.0 || ^7.0",
"rector/rector": "^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0"
"rector/rector": "^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^1.0.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Robo/Plugin/Commands/DevelopmentModeCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function databaseRefreshDdev(string $siteName = 'default', array $options
$this->say("Importing $dbPath");
$this->taskExec(LocalDevEnvironmentTypes::DDEV->value)
->arg('import-db')
->option('database', $siteName == 'default' ? 'db' : $siteName)
->option('database', $siteName === 'default' ? 'db' : $siteName)
->option('file', $dbPath)
->run();

Expand Down
2 changes: 1 addition & 1 deletion src/Robo/Plugin/Commands/DrupalStatusReportCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function drupalStatusReport(
->dir("$this->drupalRoot/sites/$siteDir/")
->printOutput(false)
->run();
$drushOutput = trim($result->getOutputData());
$drushOutput = trim((string) $result->getOutputData());
$reportJson = json_decode($drushOutput, null, 512, JSON_THROW_ON_ERROR);
if (!is_array($reportJson) || $reportJson !== []) {
$this->say($drushOutput);
Expand Down
2 changes: 1 addition & 1 deletion src/Robo/Plugin/Commands/ValidateConfigCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function validateDrupalConfig(
->dir("$this->drupalRoot/sites/$siteDir/")
->printOutput(false)
->run();
$drushOutput = trim($result->getOutputData());
$drushOutput = trim((string) $result->getOutputData());
$configJson = json_decode($drushOutput, null, 512, JSON_THROW_ON_ERROR);
if (!is_array($configJson) || $configJson !== []) {
$this->say($drushOutput);
Expand Down

0 comments on commit b546c5e

Please sign in to comment.