Skip to content

Commit

Permalink
Update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tr33m4n committed Aug 4, 2023
1 parent d775f17 commit 0192f71
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 0192f71

Please sign in to comment.