fix: remove all */ sequences from comments to prevent docblock termination
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Auto Version Bump / Version Bump (push) Has been cancelled
Update Server / Update Server (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled

Cron-related comments contained */ in examples like "*/5" and "*/N"
which PHP interprets as closing the block comment, causing syntax errors.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-05-30 16:10:55 -05:00
parent 1673616523
commit 5245d15b9d
@@ -1778,7 +1778,7 @@ class MokoWaaS extends CMSPlugin implements BootableExtensionInterface
/**
* Check if a value matches a crontab field expression.
*
* @param string $field Cron field (e.g. "*/5", "1,15", "0-23", "*")
* @param string $field Cron field (e.g. every-5, 1-15 range, 0-23, wildcard)
* @param int $value Current value to check
* @param int $min Minimum allowed value
* @param int $max Maximum allowed value
@@ -1793,7 +1793,7 @@ class MokoWaaS extends CMSPlugin implements BootableExtensionInterface
{
$part = trim($part);
// Step: */N or N-M/S
// Step: every-N or range-with-step
if (str_contains($part, '/'))
{
[$range, $step] = explode('/', $part, 2);