« first day (4118 days earlier)      last day (1051 days later) » 

00:05
For consistency in PHP8, should ALL array_diff() and array_intersect() functions that involve user functions give DEPRECATED warnings when a non-integer is returned from the user function (like array_uintersect() does)? 3v4l.org/V5lAk Personally, I think I'd rather silently allow the return value to be converted to int for flexibility. This allows more native functions to be used rather than only the native functions that return a 3-way response.
Then again, you lot will be much wiser about what is best for PHP.
Oddly, array_uintersect() doesn't give the same complaint if I return string-type values; only boolean type values. 3v4l.org/u4nQt
@mickmackusa Should I be posting a bug report for this item?
00:24
If you've missed it on the ML, i'm running a strawpoll to get a feeling for the desire to promote attempts to redefine constants up to error exceptions - wiki.php.net/redefine_constants_exception_strawpoll
 
7 hours later…
07:54
Does anyone know if there is an online table (ideally filterable) that shows all native PHP functions, their parameter count, and their return type? I would find such a thing useful today.
I'm interested in knowing all native functions that receive two scalar parameters and return an int. I feel like if I hunt for these manually, I might miss some.
 
2 hours later…
09:45
@mickmackusa Not sure there is such a thing, but you could look at the .stub.php files in the php-src code. Or at Jetbrains' ones. github.com/JetBrains/phpstorm-stubs
10:29
morning
Hallo!
11:30
Gah, recorded the podcast with the wrong (and much shitter) mic :-/
 
1 hour later…
12:57
o/
o/
13:50
@mickmackusa parse psalm stubs or phpstan stubs. Probably the easiest way
 
1 hour later…
15:10
So, hypothetically, how much would haters gonna hate if I also strawpolled undefined variable severity to Error for 9.0? wiki.php.net/rfc/engine_warnings got 56% in favour of jumping straight to error (from notice). It'll have had 4 or 5 years at warning, so i'd think also probably a super-majority now for bumping to error.
@MarkR I think that vote should succeed by a relatively large margin, not sure if there's a point to a straw poll. It wouldn't change anything about the content of the RFC anyway, so might as well do a proper vote.
@IluTov Can we do votes now that have deferred implementation a couple of versions ahead?
Sure, that happens all the time
Hmm, fair enough then, i'll stick that on the to do list to re-do the vote.
15:50
Where to put attributes? Interface, Abstract or subclass ? is there a rule about this ?
 
2 hours later…
18:45
wasn't there an RFC to allow baked enum as a valid array offset ?
18:56
There was an RFC to allow objects as array keys, which would have implicitly allowed any enum as an array key. Nikita wrote it, but never took it to a vote.
19:24
@MarkR wouldn't it make more sense to do a big RFC for promotions again like Nikita did for 8.0?
And maybe we should spend some time on thinking about the reference ones
 
2 hours later…
21:30
@Girgias I was reading through it earlier to see if there was anything else we might want to bump, I'd agree a bumper pack of promotions would keep things tidy, although lumping them all together might distract from certain more troublesome ones
ooor it will hide the controversial ones pointsathead
 
2 hours later…
23:08
user image
3
23:43
lol
@Girgias I've opened a discussion on the ML

« first day (4118 days earlier)      last day (1051 days later) »