~/talk

Awesome Features of PHP8

Talkat CakeFest 2022 · 2022-09-29..09-30· [php]
links:none on file
slides:none on file

Live code shows PHP 8.0–8.2 changes by replacing a 10‑line switch with a four‑line match expressions example that returns "not set" or the matched class name, and PhpStorm auto‑converts switches to matches. Demonstrations prove named parameters let arguments be passed out of order (but warn against using them for third‑party APIs). Constructor property promotion removes separate property declarations and assignments, read‑only properties/classes (8.1/8.2) prevent external mutation, and the null‑safe operator short‑circuits chains instead of manual if checks.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:07Match expressions
  3. 8:11Named parameters
  4. 15:20Constructor property promotion
  5. 21:44Read-only properties
  6. 25:51Read-only classes
  7. 28:34Null safe operator
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.