Re: [PHP-DEV] PHP7 and types

2015-07-11 Thread Marcio Almada
Hi, 2015-07-11 15:41 GMT-03:00 Sebastian Bergmann : > Am 11.07.2015 um 19:53 schrieb S.A.N: >> It will be useful for autocomplete in IDE > > That argument is bogus since proper IDEs (PhpStorm, fex.) leverage > docblock annotations for that already. > > -- > PHP Internals - PHP Runtime Developmen

Re: [PHP-DEV] Possible Bug or Bad Expectations?

2015-07-11 Thread Tjerk Meesters
On Sun, Jul 12, 2015 at 2:52 AM Ralph Schindler wrote: > Hi all, > > I am conflicted as per if what I experience in this code should be > throwing a notice in E_STRICT: > > http://3v4l.org/srm5f > >error_reporting(E_ALL); >$foo = ['bar' => ['baz' => 5]]; >$bar = ['box' => 'baz'];

Re: [PHP-DEV] Concept for Json_decode

2015-07-11 Thread Larry Garfield
On 07/10/2015 11:57 PM, Kris Craig wrote: On Fri, Jul 10, 2015 at 7:07 PM, Larry Garfield wrote: On 07/10/2015 07:37 PM, Kris Craig wrote: On Fri, Jul 10, 2015 at 2:39 PM, Larry Garfield wrote: On 7/10/15 3:27 PM, Dean Eigenmann wrote: Hello, I have a proposal for PHP. The proposed i

Re: [PHP-DEV] PHP7 and types

2015-07-11 Thread Ryan Pallas
On Sat, Jul 11, 2015 at 12:41 PM, Sebastian Bergmann wrote: > Am 11.07.2015 um 19:53 schrieb S.A.N: > > It will be useful for autocomplete in IDE > > That argument is bogus since proper IDEs (PhpStorm, fex.) leverage > docblock annotations for that already. > > Agreed. I don't know any IDE mean

[PHP-DEV] Possible Bug or Bad Expectations?

2015-07-11 Thread Ralph Schindler
Hi all, I am conflicted as per if what I experience in this code should be throwing a notice in E_STRICT: http://3v4l.org/srm5f ['baz' => 5]]; $bar = ['box' => 'baz']; // this will Notice: Undefined index: boom var_dump(isset($foo['bar'][$bar['boom']])); Essentially, my expectatio

Re: [PHP-DEV] PHP7 and types

2015-07-11 Thread Sebastian Bergmann
Am 11.07.2015 um 19:53 schrieb S.A.N: > It will be useful for autocomplete in IDE That argument is bogus since proper IDEs (PhpStorm, fex.) leverage docblock annotations for that already. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP-DEV] PHP7 and types

2015-07-11 Thread S.A.N
+1 It will be useful for autocomplete in IDE -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP7 and types

2015-07-11 Thread Ryan Pallas
With all the new typing and strict mode in PHP7, I'm wondering if there is any planned support for typing of properties in a future version. IE something like: class Foo {} class Bar { public Foo $foo; public function __construct(Foo $foo) { $this->foo = $foo; } } This seems real