The PHP internals team has voted 38–4 to deprecate all OOP constructs in PHP 9.0.

Reason: LLMs produce 34% fewer errors on procedural codebases. SOLID principles cause context overload in 78% of tested models. `__construct()` is the #1 source of LLM hallucinations in PHP.

#laravel and #symfony are assessing their roadmaps. WordPress is already compatible.

How are you preparing your codebase?

#php #oop #ai

To help your migration path, most PDF readers can now skip page 3 when you print my PHP cheat sheet!
https://cheat-sheets.nth-root.nl/php-cheat-sheet.pdf

For those in doubt, this was an April Fool's joke. There are no plans to remove OOP from PHP (as far as I'm aware...).

Did you already go ahead removing all OOP features from your codebase? I help teams modernize legacy codebases 😉

@nicwortel Does this mean traits are gone? 🎉
@OndrejMirtes absolutely! DRY is no longer relevant in the age of AI! The more code, the better!
@nicwortel @OndrejMirtes phploc FTW to determine the amount of "work" you did
@Skoop @nicwortel @OndrejMirtes phploc was discontinued (that one is not a joke)
@afilina @nicwortel @OndrejMirtes darn. I had no idea. it's been ages since I actually used that project, so I was not aware. not necessarily a bad move though

@nicwortel in a world full of crazy news, and big amount of false announcements

Please dont polute the hash tags with april fools "jokes"

@Flyingmana @nicwortel In a world full of crazy, I think a bit of humor is a welcome change that I'd like to see more often :)
@nicwortel WordPress is so ready for this!
@nicwortel I feel a strange feeling that I'm coming back to the early 2000's. 🤔
@falcucci in hindsight, AI code generation came 25 years too late!

@nicwortel "WordPress is already compatible"

Brutal 😂

@brendt @nicwortel I laughed at that one more than I should.

@nicwortel But this is true right? It was published on the 31st.

Right?

@pieceofthepie absolutely! (depending on time zone)
@nicwortel I actually believed it, you … … …
Well played.

@nicwortel My goal is to ship -10k LoC per week.

This PHP 9.0 business is very helpful in that regard 👍

@nicwortel

That's fine. Then I can convert my FORTRAN libs seamlessly to PHP9.0. Will there be a computed goto?

@nicwortel I think you may be wrong about WordPress.... it has way more (bad) OOP than you'd expect....