#php9 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #php9, aggregated by home.social.
-
Finally Generics coming in PHP 9 🎉
-
Finally Generics coming in PHP 9 🎉
-
Finally Generics coming in PHP 9 🎉
-
Finally Generics coming in PHP 9 🎉
-
Finally Generics coming in PHP 9 🎉
-
I wish PHP 9.0 had a feature called "Flag".
No more bitwise operators, just fluent flag declaration. I'll prefer that rather than adding numbers and then wondering what is "8 | 16".
#Programming #Code #Coding #PHP #SoftwareDevelopment #WebDevelopment #WebDev #PHP9
-
I hope #PHP9 allows to construct a class from a static method without having to call `new`:
#PHP #Coding #Code #Programming #SoftwareDevelopment #WebDevelopment #WebDev
-
⚠️ #PHP 8.2 deprecated dynamic properties - #PHP9 removes them completely! #webdev
🔴 Dynamic properties = adding properties to objects without declaring them in the class. Example: $user->age = 30; on an empty User class. This worked silently in older PHP versions.
🐛 Problem 1: Silent typos become hidden bugs. Write $user->custmer_email instead of customer_email - no error thrown, just returns null later when you try to read it. Hours of debugging for a simple typo.
🧵 👇
-
Give me true async for PHP 9.0
#Programming #PHP #Coding #Code #PHP9 #Async #SoftwareDevelopment #WebDevelopment #Software #ProgrammingLanguages #JavaScript #ECMAScript #Golang #Go #WebDev
-
This article goes beyond just listing PHP 9.0's features; it explores how those features could impact real-world development, what they mean for PHP's future, and how devs can start preparing themselves https://medium.com/@umeshp113/the-future-of-php-a-fresh-take-on-what-php-9-0-brings-f7b9cf7370c6 #php #phpdevs #php9 #foss
-
So, i learned today that #PHP #php8 has deprecated strftime and #php9 plans to remove it. They officially say you should be using either date() or the intldateformatter suite instead.
Like... what?
strftime is ISO Standard! It's literally POSIX! The format flags are even "printf"-style!
Not only that, but the proposed """replacements""" force you to choose between whatever variant of racism, classism and Americentrism you like!: date() works only in US English and only for numbers, whereas intldateformatter supports languages but requires users of any culture other than "US English" to load a whole PHP module.
Oh, besides you have to change the format strings (woe betide if you are using user-provided!), ALSO these replacements *invert the logic* for processing the format strings as well: intldateformatter etc escapes everything that is *not* a format flag.
Fortunately, forwardports already exist such as https://github.com/alphp/strftime/ .
-