Skip to content

Commit

Permalink
Merge pull request #171 from tr33m4n/feature/dep-maintenance
Browse files Browse the repository at this point in the history
Update dev dependencies
  • Loading branch information
tr33m4n authored Aug 4, 2023
2 parents e15e273 + 0192f71 commit 4b40ab2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"adamwojs/php-cs-fixer-phpdoc-force-fqcn": "^2.0",
"codeception/module-asserts": "^2.0",
"codeception/module-phpbrowser": "^2.0",
"friendsofphp/php-cs-fixer": "^3.8",
"phpstan/phpstan": "^1.5",
"rector/rector": "^0.15.21",
"squizlabs/php_codesniffer": "^3.6"
"friendsofphp/php-cs-fixer": "^3.22",
"phpstan/phpstan": "^1.10",
"rector/rector": "^0.17.10",
"squizlabs/php_codesniffer": "^3.7"
},
"config": {
"optimize-autoloader": true,
Expand Down
7 changes: 3 additions & 4 deletions src/Codeception/Module/Percy.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class Percy extends Module
/**
* Percy constructor.
*
* @throws \Codeception\Exception\ModuleException
* @param array<string, mixed>|null $config
* @throws \Codeception\Exception\ModuleException
*/
public function __construct(
ModuleContainer $moduleContainer,
Expand Down Expand Up @@ -78,8 +78,8 @@ public function __construct(
/**
* Take snapshot of DOM and send to https://percy.io
*
* @throws \Throwable
* @param array<string, mixed> $snapshotConfig
* @throws \Throwable
*/
public function takeAPercySnapshot(
string $name,
Expand Down Expand Up @@ -143,9 +143,8 @@ public function _afterSuite(): void
*
* Clear payload cache on failure
*
* @param \Exception $fail
* @throws \Throwable
* @param \Exception $fail
* @param \Codeception\TestInterface $test
*/
public function _failed(TestInterface $test, $fail): void
{
Expand Down
6 changes: 1 addition & 5 deletions src/Codeception/Module/Percy/ConfigManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ public function get(string $key = null)
return $this->config;
}

if (isset($this->config[$key])) {
return $this->config[$key];
}

return null;
return $this->config[$key] ?? null;
}

/**
Expand Down

0 comments on commit 4b40ab2

Please sign in to comment.