Skip to content

Commit

Permalink
Add support for PHP 8.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopetkov committed Nov 2, 2023
1 parent 20566a2 commit 0417b47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*"
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*|8.3.*"
},
"require-dev": {
"ivopetkov/docs-generator": "1.*"
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="">
<testsuite name="Tests">
<directory>./tests/</directory>
</testsuite>
</testsuites>
Expand Down
1 change: 1 addition & 0 deletions src/ObjectStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ public function validate($key): bool
* @throws \InvalidArgumentException
* @throws \IvoPetkov\ObjectStorage\ErrorException
* @throws \IvoPetkov\ObjectStorage\ObjectLockedException
* @throws \IvoPetkov\ObjectStorage\ObjectNotFoundException
*/
public function execute(array $commands): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/ObjectStorage/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static function cleanup(string $dir): void

$allSubDirsAreRemoved = true;
foreach ($subDirs as $subDir) {
if (substr($subDir, -3) === DIRECTORY_SEPARATOR . '..' || substr($subDir, -2) === DIRECTORY_SEPARATOR . '.') {
if (array_search(substr($subDir, -2), ['/.', '\.']) !== false || array_search(substr($subDir, -3), ['/..', '\..']) !== false) {
continue;
}
if (!$removeEmptyDirs($subDir)) {
Expand Down

0 comments on commit 0417b47

Please sign in to comment.