1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 03:44:32 +02:00

chore: use str_contains (#3841)

This commit is contained in:
Ngô Quốc Đạt
2023-09-15 03:05:15 +07:00
committed by GitHub
parent ee34217b15
commit be9eb16d7d
4 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ class RequireExtensionHandler
$packageName = $command->package;
// Auto append :* if not requiring a specific version.
if (strpos($packageName, ':') === false) {
if (! str_contains($packageName, ':')) {
$packageName .= ':*';
}