We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a3769 commit 73850e0Copy full SHA for 73850e0
1 file changed
src/Service/Hyva/ModuleScanner.php
@@ -114,14 +114,14 @@ public function hasHyvaCompatibilityPackage(string $modulePath): bool
114
115
// Check if this IS a Hyvä compatibility package
116
$packageName = $composerData['name'] ?? '';
117
- if (str_contains($packageName, 'hyva-themes/') && str_contains($packageName, '-compat')) {
+ if (str_starts_with($packageName, 'hyva-themes/') && str_contains($packageName, '-compat')) {
118
return true;
119
}
120
121
// Check dependencies for Hyvä packages
122
$requires = $composerData['require'] ?? [];
123
foreach ($requires as $package => $version) {
124
- if (str_contains($package, 'hyva-themes/')) {
+ if (str_starts_with($package, 'hyva-themes/')) {
125
126
127
0 commit comments