array_merge, json_encode) with typed alternatives for critical paths.Adopt if:
array_* or str_*).Look elsewhere if:
*"This package lets us automate type safety for PHP functions, reducing bugs and developer friction. By wrapping common PHP helpers (e.g., array_merge, json_encode) in PHPStan-compliant versions, we can:
*"This solves a painful gap in PHPStan adoption: dynamic functions like array_map or str_replace often trigger false positives or require verbose workarounds. The elasticms/helpers package:
Helpers::arrayMerge()).*"Imagine no more PHPStan error: Function foo() may return null for simple array operations. This package:
Helpers::strStartsWith(string $haystack, string $needle): bool).collect() or Str:: helpers for consistency.@phpstan-ignore annotations.
How to start: Add to composer.json, replace array_filter($data) with Helpers::arrayFilter($data), and watch PHPStan errors vanish. Docs are here."*How can I help you explore Laravel packages today?