Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
- updated composer dev dependencies
- updated CS
  • Loading branch information
petrparolek authored and f3l1x committed May 11, 2021
1 parent 19d88c6 commit ff3c86b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"nette/tester": "^2.3.4"
},
"require-dev": {
"ninjify/qa": "^0.10",
"ninjify/qa": "^0.12",
"mockery/mockery": "^1.2.2",
"janmarek/mockista": "^1.1.0",
"nette/di": "~2.4.15",
"nette/robot-loader": "~3.2.0",
"nette/di": "~3.0.0",
"nette/robot-loader": "~3.2",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"phpstan/phpstan-nette": "^0.12",
Expand Down
2 changes: 2 additions & 0 deletions src/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public static function rmdir(string $dir): void
if (!is_dir($dir)) {
return;
}

self::purge($dir);
@rmdir($dir);
}
Expand All @@ -163,6 +164,7 @@ private static function purge(string $dir): void
if (!is_dir($dir)) {
self::mkdir($dir);
}

THelpers::purge($dir);
}

Expand Down
1 change: 1 addition & 0 deletions src/Toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static function test(callable $function): void
if (!$function instanceof Closure) {
$function = Closure::fromCallable($function);
}

$function = Closure::bind($function, self::$bind, self::$bind);
}

Expand Down

0 comments on commit ff3c86b

Please sign in to comment.