diff --git a/composer.json b/composer.json index 8c40ccc..cf73264 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "friendsofphp/php-cs-fixer": "^3.41", + "friendsofphp/php-cs-fixer": "^3.46", "phpstan/phpstan": "^1.10" }, "autoload": { diff --git a/src/Entry.php b/src/Entry.php index 935c795..dff6c69 100644 --- a/src/Entry.php +++ b/src/Entry.php @@ -187,7 +187,7 @@ public function getData(): array public function isDirectory(): bool { - return '+' === $this->folder || false !== \strpos((string) $this->attributes, 'D'); + return '+' === $this->folder || \str_contains((string) $this->attributes, 'D'); } public function isEncrypted(): bool