Skip to content

Preg replaced

Choose a tag to compare

@ChristopheFerreboeuf ChristopheFerreboeuf released this 04 Mar 14:05
· 32 commits to main since this release
7407a4c

Fixed

  • Content::removeComments: Now throws InvalidArgumentException on preg_replace failure instead of silently returning null — prevents downstream errors on malformed files
  • CollectionInLoop: Gracefully handles removeComments failures with a warning instead of crashing the scan
  • HardWrittenSQL: Gracefully handles removeComments failures with a warning instead of crashing the scan
  • Content::findApproximateLine: Moved preg_replace for needle normalization outside the loop — minor performance improvement

Added

  • PHAR provenance attestation in release workflow via actions/attest-build-provenance@v2
  • Security & Privacy documentation (docs/security.md)
  • CliWriter: Overridable $stderr stream for testability

Changed

  • README updated with privacy notice and 20 processors count

Full Changelog: v1.0.0...v1.0.1