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 2 buildings, a company office, and a bakery shop; Confirmed 2 restaurants, a veterinary, and 9 other objects
Merge branch 'xdebug_3_5'
Merged pull request #1064
Fixed issue #2404: Remove debugging line
Created 3 crossings and a waste_basket; Updated a bus_stop and a waste_basket; Deleted a waste_basket
Created an entrance and a staircase entrance
I walked 7.5km in 1h25m21s
Success (well, 80%) with my first real soldering-required project!
I have a board with components that can power three (different) Neopixel shapes in a (prototype) Lego enclosure.
Need to make lots of nice 8x8 pixel art and fonts now though, and get a properly designed Lego box.
The only problem is a wonky connector for my third Neopixel — I'll have to resolder that.
I also have software so that I can change everything through Wi-Fi.
I walked 8.0km in 1h32m34s
Mark roads and tracks as private, as I found out yesterday and got stuck behind a locked fence with a security guard
Updated a bird_hide
Updated a bench
This is not an accessible site. Needs more updates too
This is not an accessible site. Needs more updates too
Created 2 gates
I hiked 18.6km in 4h24m32s
I walked 6.2km in 59m46s
This is indeed no more a clothes shop, but a restaurant
I walked 5.2km in 1h8m43s
Created 2 waste_baskets, 2 boards, and 2 benches; Updated 8 benches, 6 waste_baskets, and 2 other objects; Deleted 2 waste_baskets and a bench
I walked 5.9km in 1h25m05s
I walked 1.1km in 10m15s
Updated a pub
I walked 9.6km in 1h37m31s
Merge branch 'v2022'


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