diff --git a/composer.json b/composer.json
index 2a6dff50..98ac4491 100644
--- a/composer.json
+++ b/composer.json
@@ -33,7 +33,7 @@
"thecodingmachine/safe": "^2.5.0",
"vimeo/psalm": "^5.23.1",
"wyrihaximus/coding-standard": "^2.14.0",
- "wyrihaximus/phpstan-rules-wrapper": "^5.0.0"
+ "wyrihaximus/phpstan-rules-wrapper": "^5.0.1"
},
"conflict": {
"composer/compoer": "<2.6.0",
diff --git a/composer.lock b/composer.lock
index 0af7cddd..cfc49d6c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "9541918919e3e95cd0c03701f0973ef3",
+ "content-hash": "e29b2b0ecc09a5e5692d0e51007ff9b7",
"packages": [
{
"name": "amphp/amp",
@@ -10886,16 +10886,16 @@
},
{
"name": "wyrihaximus/phpstan-rules-wrapper",
- "version": "5.0.0",
+ "version": "5.0.1",
"source": {
"type": "git",
"url": "https://github.com/WyriHaximus/php-phpstan-rules-wrapper.git",
- "reference": "74e00e425a022be762817068207e4d625e4f4f7e"
+ "reference": "5058c7f711bc86032af61a4aad9f11a83c7fd282"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WyriHaximus/php-phpstan-rules-wrapper/zipball/74e00e425a022be762817068207e4d625e4f4f7e",
- "reference": "74e00e425a022be762817068207e4d625e4f4f7e",
+ "url": "https://api.github.com/repos/WyriHaximus/php-phpstan-rules-wrapper/zipball/5058c7f711bc86032af61a4aad9f11a83c7fd282",
+ "reference": "5058c7f711bc86032af61a4aad9f11a83c7fd282",
"shasum": ""
},
"require": {
@@ -10923,7 +10923,7 @@
"description": "🌯 PHPStan rules wrapper",
"support": {
"issues": "https://github.com/WyriHaximus/php-phpstan-rules-wrapper/issues",
- "source": "https://github.com/WyriHaximus/php-phpstan-rules-wrapper/tree/5.0.0"
+ "source": "https://github.com/WyriHaximus/php-phpstan-rules-wrapper/tree/5.0.1"
},
"funding": [
{
@@ -10931,7 +10931,7 @@
"type": "github"
}
],
- "time": "2024-04-06T13:45:50+00:00"
+ "time": "2024-04-06T14:11:58+00:00"
}
],
"packages-dev": [],
diff --git a/etc/qa/phpunit.xml b/etc/qa/phpunit.xml
index d0918847..aa225fc3 100644
--- a/etc/qa/phpunit.xml
+++ b/etc/qa/phpunit.xml
@@ -10,7 +10,8 @@
../../src/
-
-
-
+
+
+
+
diff --git a/src/TestCase.php b/src/TestCase.php
index faa1e804..d2337c9f 100644
--- a/src/TestCase.php
+++ b/src/TestCase.php
@@ -9,6 +9,7 @@
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
+use Safe\Exceptions\FilesystemException;
use SplFileInfo;
use function assert;
@@ -86,6 +87,7 @@ final protected function getSysTempDir(): string
return sys_get_temp_dir();
}
+ /** @throws FilesystemException */
final protected function rmdir(string $dir): void
{
$directory = new FilesystemIterator($dir);
@@ -107,6 +109,7 @@ final protected function rmdir(string $dir): void
rmdir($dir);
}
+ /** @throws FilesystemException */
final protected function getTmpDir(): string
{
if (! file_exists($this->tmpDir)) {