You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keeps the library PHP (defensive PHP-security tooling). Config-only fixes:
- composer.json: add autoload.files for src/WordPress/Adapter.php so the
aegis_* WordPress-adapter functions are loaded (PSR-4 only autoloads
classes, never free functions).
- Adapter.php: move the aegis_* helpers to the GLOBAL namespace (was
PhpAegis\WordPress). They are WordPress-style globals invoked unqualified
(aegis_html(...)) and rely on PHP's global-function fallback; namespaced,
the ~20 functions were unresolvable from the test namespaces. 'use'
imports retained so the underlying class refs still resolve.
- .php-cs-fixer.dist.php: fix invalid v3 config (exit 16): drop bogus
'no_eval' (no such fixer) and rename 'no_unneeded_curly_braces' ->
'no_unneeded_braces'.
- php-lint.yml Security Pattern Check: add \b word boundaries so curl_exec()
no longer matches \bexec\(, and anchor the backtick check + exclude
quoted-string contexts so the library's own escaped backtick char in its
Turtle/URI validators is not flagged.
Verified statically (no PHP runtime in env): composer.json is valid JSON;
new security-pattern regexes produce zero matches on src/ while still
catching a bare exec(. composer.lock and the PHPStan L9 baseline still
require a PHP runtime (see PR notes).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments