Skip to content

Commit

Permalink
feature: use str_contains
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Jan 4, 2024
1 parent 5e627fd commit 03b6f84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03b6f84

Please sign in to comment.