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

@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