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

12:05 AM
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?
 
12:24 AM
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…
7:54 AM
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…
9:45 AM
@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 AM
morning
 
Hallo!
 
11:30 AM
Gah, recorded the podcast with the wrong (and much shitter) mic :-/
 
 
1 hour later…
12:57 PM
o/
 
\o
 
o/
 
1:50 PM
@mickmackusa parse psalm stubs or phpstan stubs. Probably the easiest way
 
 
1 hour later…
3:10 PM
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.
 
3:50 PM
Where to put attributes? Interface, Abstract or subclass ? is there a rule about this ?
 
4:49 PM
\o
 
o/
 
 
2 hours later…
6:45 PM
wasn't there an RFC to allow baked enum as a valid array offset ?
 
6:56 PM
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.
 
7:24 PM
@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…
9:30 PM
@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…
11:08 PM
user image
3
 
11:43 PM
lol
 
@Girgias I've opened a discussion on the ML
 

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