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:
@@ -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 .= ':*';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user