Gönderi içeriği
🔥 PHP 8.5 just shipped and the pipe operator |> changes how you write Laravel code forever. Before PHP 8.5, chaining operations looked like this: $result = strtoupper(trim(str_replace('-', ' ', $slug))); With the new pipe operator in PHP 8.5: $result = $slug |> trim(...) |> (fn($s) => str_replace('-', ' ', $s)) |> strtoupper(...); Clean. Readable. Left-to-right execution — exactly how your brain reads it. Other PHP 8.5 wins worth knowing: ✅ array_first() and array_last() — finally native ✅ #[\NoDiscard] attribute — catches silent bugs at runtime ✅ Built-in URI/URL extension — no more manual string parsing ✅ OPcache now always compiled in by default ✅ clone with property overrides — immutable workflows just got clean PHP is not dying. PHP is evolving — and 8.5 is proof. Are you still on 8.2 or lower? Time to plan that upgrade. Source: linkedin