Typehints and = null
I just committed a patch to PHP CVS which allows you to do the following:
<?php
class foo {
}
function bla( foo $blah = null )
{
var_dump( $blah );
}
$f = new foo;
bla( $f );
bla();
bla( null );
?>
Comments
THANK YOU! Will it be in 5.1 ?
Yes, it will be in PHP 5.1.0.
I was hoping this would be added.
Thank you for making my life a little bit easier. Now I can be even LAZIER with doc comments :D
I'm going to assume that this will be in 6.0 as 5.1 has Release Candidates out.
That is what he just said. :)
No, I said that this will be in PHP 5.1.0 too.
Life Line
Created 3 entrances, 3 emergency entrances, and a main entrance; Confirmed a childcare
Updated a restaurant
I had a good run at Polderprikker today!
#Polderprikker nummer 84 • 4810/5000
🟦1000 🟦1000 🟨879 🟩931 🟦1000
https://polderprikker.nl/I'm looking forward to attending the State of the Map OpenStreetMap conference this coming week in Paris.
Will I see you there?
Even common birds at nice to photograph. Like this Long Tailed Tit.
#photography #Birds #BirdPhotogaphy #BirdsOfMastodon #nature #london #BirdsOfFediverse #wildlife #NaturePhotography
I visited the Rainham Marshes (near London) yesterday for some bird watching.
Got some reasonable close up shots of a Black-tailed Godwit, and a Snipe.
#BirdPhotography #BirdWatching #Photography #NaturePhotography #Bird
Updated a cafe
I hiked 7.1km in 2h52m20s
Updated a pub
I walked 6.2km in 1h2m41s
Merged pull request #1104
Drop support for PHP 8.1
I walked 1.1km in 52m54s
Merged pull request #1103
Drop support for PHP 8.0
Merged pull request #1102
Upgrade composer for benchmarks
Merged pull request #774
PHP 7.4 has not been supported for a while
Fixed issue #1674: Inconsistent Path & Branch Coverage Reported
Merge branch 'xdebug_3_5'
Merged pull request #1101
Fixed issue #2436: Potential crash when remembering on which lines br…
I walked 6.9km in 1h15m47s
I walked 1.3km in 9m40s



Shortlink
This article has a short URL available: https://drck.me/ta-n-47q