Article 71MTC PHP 8.5.0 released

PHP 8.5.0 released

by
corbet
from LWN.net on (#71MTC)
Version8.5.0 of the PHP language has been released. Changes include a new"|>" operator that, for some reason, makes these two linesequivalent:

 $result = strlen("Hello world"); $result = "Hello world" |> strlen(...);

Other changes include a new function attribute, "#[\NoDiscard]" toindicate that the return value should be used, attributes on constants, andmore; see themigration guide for details.

External Content
Source RSS or Atom Feed
Feed Location http://lwn.net/headlines/rss
Feed Title LWN.net
Feed Link https://lwn.net/
Reply 0 comments