Skip to content

Commit 73850e0

Browse files
dermatzCopilot
andauthored
Update src/Service/Hyva/ModuleScanner.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a6a3769 commit 73850e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Service/Hyva/ModuleScanner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ public function hasHyvaCompatibilityPackage(string $modulePath): bool
114114

115115
// Check if this IS a Hyvä compatibility package
116116
$packageName = $composerData['name'] ?? '';
117-
if (str_contains($packageName, 'hyva-themes/') && str_contains($packageName, '-compat')) {
117+
if (str_starts_with($packageName, 'hyva-themes/') && str_contains($packageName, '-compat')) {
118118
return true;
119119
}
120120

121121
// Check dependencies for Hyvä packages
122122
$requires = $composerData['require'] ?? [];
123123
foreach ($requires as $package => $version) {
124-
if (str_contains($package, 'hyva-themes/')) {
124+
if (str_starts_with($package, 'hyva-themes/')) {
125125
return true;
126126
}
127127
}

0 commit comments

Comments
 (0)