Skip to content

Commit e774b35

Browse files
author
Septiyan Nariyanto
committed
fix: keep metadata validation php74 compatible
1 parent 6c22d52 commit e774b35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/validate-readme.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
}
6060
}
6161

62-
if (!str_contains((string)$pluginClass, "public const VERSION = '0.1.1';")) {
62+
if (false === strpos((string)$pluginClass, "public const VERSION = '0.1.1';")) {
6363
$failures[] = 'Plugin class VERSION constant must match 0.1.1.';
6464
}
6565

66-
if (!str_contains($changelog, '## 0.1.1 - 2026-06-03')) {
66+
if (false === strpos($changelog, '## 0.1.1 - 2026-06-03')) {
6767
$failures[] = 'CHANGELOG.md must include the 0.1.1 release entry.';
6868
}
6969

0 commit comments

Comments
 (0)