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
Updated a bar; Confirmed a restaurant
Updated 3 restaurants, a vacant shop, and a bar; Confirmed a cosmetics shop, a cafe, and 2 other objects
Created 2 benches and 2 waste_baskets
Deleted a cycle_barrier
Put Kilburn Park station node in a more representable location (not at the back of the building where you can't get in)
Merge branch 'v2022'
Go with 2022.17
Merge branch 'v2022'
Update PHP merging script
Update data to 2026c
Kensal Green sidewalks: Fix alignment and connectivity near station; don't map sidewalks as separate on residential streets for just this tiny section; extend sidewalk mapping on Chamberlayne Road
New building
If you're in London (or Southern England) the ISS is going to make a fly over pass between 23:30 and 23:40 (a little earlier for West of London).
If you're further North than London, the ISS shows further South.
Almost straight overhead. It's going to be bright.
Created a wigs shop
Updated a fitness_centre
Seems I removed the landuse/natural tags
Updated a restaurant
Created a bench
Updated a cafe
But I think my favourite photo was of this Carrion Crow in flight.
The new birds I saw, were mostly too far away to get good photos.
But I saw my first Spoonbill, Corn Bunting, and a flock of Black-tailed Godwits.
I had a lovely walk around RSPB Bowers Marsh yesterday, where I saw some expected birds, and a bunch of new species.
When I got there, there was this welcome committee of Starlings.
#BirdPhotography #nature #BirdsOfFediverse #Birds #Photography #RSPB
RSPB Bowers Marsh
Created 2 benches






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