Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-10-10 01:38:52 EDT

Explore

PostsPeople
LatestRanked
@scott.keck-warren.comOct 7, 2026, 1:00 PM

I wanted to test my PHP 8.6 code samples without putting a beta PHP on the laptop I use every day.

https://scott.keck-warren.com/blog/2026/running-php-8.6-beta-cli-in-docker?utm_source=social&utm_medium=social&utm_campaign=scottkw&utm_content=2026-10-07

#PHP #PHP86 #Docker

@scott.keck-warren.comOct 7, 2026, 11:11 AM

I've written SO many string transformations full of temp variables and fn() wrappers. PHP 8.6's partial function application plus the pipe operator gets rid of both.

#PHP #PHP86 #CleanCode

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comOct 6, 2026, 1:02 PM

#PHPC tip: PHP 8.6 lets you put `#[\Override]` on class constants.

Rename the parent constant, and the child fails at compile time instead of drifting into a separate, unused constant.

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHP86 #CleanCode

@scott.keck-warren.comOct 6, 2026, 11:17 AM

PHP 8.6 lands on November 19th, 2026, but you don't have to wait. I recorded my walkthrough on beta 3 with the official Docker image (php:8.6.0beta3-cli), so test your app now.

#PHP #PHP86 #Docker

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comOct 5, 2026, 1:07 PM

Have you ever hit this fatal error?

In PHP 8.6, that line works. What did you do to get around it?

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHP86 #phparch

@scott.keck-warren.comOct 5, 2026, 11:20 AM

My PHP 8.6 video covers the features I think will make my personal life better. Which one should I have covered instead?

#PHP #PHP86 #phpc

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comOct 4, 2026, 1:18 PM

What does the `1` mean in the first call?

PHP 8.6 adds a `SortDirection` enum to the core. The pull requests I approve fastest are the ones where I never have to open another file to understand an argument.

Video: https://youtu.be/U9Jrcg1Ns1k

#CareerDev #PHP #PHP86

@scott.keck-warren.comOct 4, 2026, 11:18 AM

Partial function application is a fancy computer science term for setting up a function with some of its parameters now and passing the rest later. PHP 8.6 makes it native syntax.

#PHP #PHP86 #FunctionalProgramming

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comOct 3, 2026, 1:12 PM

#PHPC tip: PHP 8.6 adds `clamp()`, so the two-`if` range check goes away.

Swap min and max, and PHP throws a `ValueError`.

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHP86 #CleanCode

@scott.keck-warren.comOct 3, 2026, 11:08 AM

Two new symbols to learn in PHP 8.6: ? is the argument placeholder, and ... means zero or more parameters. Define the function up front and fill in the rest later.

#PHP #PHP86 #FunctionalProgramming

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comOct 2, 2026, 1:09 PM

#PHP8.6 deprecates `is_integer()`, `is_long()`, `is_double()`, and `doubleval()`.

I ran this grep against my app directory and found 150 "problems".

Every call will fill your logs with deprecation notices the day you upgrade.

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHP86 #phparch

@scott.keck-warren.comOct 2, 2026, 11:19 AM

Pair the PHP 8.5 pipe operator with PHP 8.6 partial function application and you get some VERY concise code (and I expect Rector to help convert the old stuff).

#PHP #PHP86 #CleanCode

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comOct 1, 2026, 11:05 AM

I've handwritten min/max range checks for the current page number more times than I can count. PHP 8.6 adds clamp(), and I might polyfill it in older projects.

#PHP #PHP86 #CleanCode

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comSep 30, 2026, 1:03 PM

#PHP86: Partial Function Applications, which allow us to write the following.

The `?` is an argument placeholder, so `str_replace('Scott', 'Alice', ?)` builds a function with the first two arguments, and the pipe puts the value in '?'

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHPC #PHP86 #phparch

@scott.keck-warren.comSep 30, 2026, 11:13 AM

PHP 8.6's clamp() has a built-in range check, so you can't mix up the min and max values. I've done that more than once, so I'm VERY happy about this one.

#PHP #PHP86 #CodeQuality

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comSep 29, 2026, 11:09 AM

array_multisort() takes SORT_ASC/SORT_DESC as ints, so 42 gets right through. PHP 8.6 adds a SortDirection enum in the global namespace, and the RFC hints at wider adoption.

#PHP #PHP86 #TypeSafety

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comSep 28, 2026, 11:01 AM

In PHP 8.4, fulfilling an interface property meant redefining the whole property hook. PHP 8.6 lets a readonly property do it and keeps the class much tighter. Big win for value objects.

#PHP #PHP86 #OOP

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@scott.keck-warren.comSep 27, 2026, 11:13 AM

When people say PHP isn't secure, I point them to how every release improves security a little bit. PHP 8.6 makes sessions secure by default (check your SSO and payment callbacks before upgrading).

#PHP #PHP86 #AppSec

https://www.phparch.com/2026/09/stop-writing-php-like-this-8

@scott.keck-warren.comSep 26, 2026, 11:11 AM

PHP 8.6 adds a time duration class with helpers for math. It got a quick mention in my video, and I think it'll make a lot of our code easier to read.

#PHP #PHP86 #CleanCode

https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

@dseguy.bsky.socialSep 26, 2026, 9:54 AM

🐘 PHPenomenal 8.6 is on!

Write a "useful" #PHP app that actually uses PHP 8.6's new features.

One rule: share your source code by Nov 19, 2026, when PHP 8.6 drops.

Best entries wins! 🏆
Join in → open an issue on the repo. #PHP #PHP86 #PHPenomenal

www.exakat.io/phpenomenal-...

Load more