SPATIE

Services
Our philosophy Packages Postcards Guidelines Documentation
Products Blog About
Login Work with us
  • Introduction
  • 1. Getting started with PHP 8

  • Automatically upgrading your code to PHP 8 using Rector
  • 2. New features in PHP 8

  • The Stringable interface
  • The match expression
  • Object classnames
  • Improved exceptions
  • Named arguments
  • Promoted properties
  • The nullsafe operator
  • Three new string functions
  • Union types
  • Adding meta data using attributes
  • Exploring WeakMaps
  • Trailing commas in function definitions
  • 3. New features in PHP 8.1

  • Improvements to Array Spreading
  • Readonly Properties
  • Enums
  • First-class callables
  • Intersection Types
  • The Never Type

Learn how to build modern applications using PHP

Visit Front Line PHP

Trailing commas in function definitions

In PHP 8 you can now use trailing commas in function definitions.

In this video you'll see why that is useful.

Links

  • Front Line PHP
  • RFC
Exploring WeakMaps
Up next Improvements to Array Spreading
  • Services
  • Open source
  • Products
  • Courses
AboutBlogNewsletterDocsGuidelines

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • X
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead

A good
match?

What we do best

  • All things Laravel
  • Custom frontend components
  • Building APIs
  • AI-powered features
  • Simplifying things
  • Clean solutions
  • Integrating services

Not our cup of tea

  • WordPress themes
  • Cutting corners
  • Free mockups to win a job
  • "Just execute the briefing"

In short: we'd like to be a substantial part of your project.

Get in touch via email