Re: [PHP-DEV] [Discussion] Variable Type Declaration Before Usage

2023-11-07 Thread Thomas Gutbier
Var; // 3 $intVar = 'x'; // Fatal error: Uncaught TypeError ``` https://3v4l.org/GFNgp#v8.2.11 Greetings Thomas Gutbier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] What's new in 8.2: DNF types

2022-12-08 Thread Thomas Gutbier
null; -  }    return $entity;    }    } Best regards Thomas Gutbier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [Discussion] Readonly Classes

2022-04-25 Thread Thomas Gutbier
Am 19.04.2022 um 09:58 schrieb Máté Kocsis: Hi Everyone, After quite a long pause, I'd like to revive the discussion of readonly classes and possibly put it to vote in the coming week(s). If I'm following, then this RFC is about 90% syntactic sugar for putting `readonly` on all properties, plu

Re: [PHP-DEV] [RFC] Keep type of reference params

2020-05-08 Thread Thomas Gutbier
Am 08.05.2020 um 12:37 schrieb G. P. B.: I think everyone can agree this is useful. But the issue here is the implementation. Because from what I know PHP's references are aspecial kind of pain in the engine. That's why the common wisdom is to use references in PHP as least as possible. And IIRC

Re: [PHP-DEV] Re: Renaming type-hints to something else?

2014-09-21 Thread Thomas Gutbier
Am 17.09.2014 um 16:43 schrieb Levi Morrison: class ReflectionType Methods: ReflectionFunction::hasReturnType ReflectionFunction::getReturnType ReflectionParameter::hasType ReflectionParameter::getType This looks most straightforward to me while I dont see any benefit by adding some

Re: [PHP-DEV] Renaming type-hints to something else?

2014-09-21 Thread Thomas Gutbier
Am 20.09.2014 um 15:05 schrieb Levi Morrison: On Fri, Sep 19, 2014 at 7:58 AM, wrote: What's about "Typed Arguments"? I am proposing return types which are not arguments, so that would be too narrow. Sorry, I have mistaken that related to the recently discussion about return types. Otherw

Re: [PHP-DEV] Renaming type-hints to something else?

2014-09-19 Thread thomas . gutbier
Am 19.09.2014 15:21, schrieb Levi Morrison: Anyone else have an opinion they want to voice on this? What's about "Typed Arguments"? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Clarification on the Enum language structure

2011-02-14 Thread Thomas Gutbier
h to implement a enum language structure. The current rfc seams not very useful for me. Thanks! Thomas Gutbier Web Developer Hannover, Germany -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bug in 5.3 __invoke() magic method?

2010-09-30 Thread Thomas Gutbier
ould prefer strongly unique identifiers for all types. -- Thomas Gutbier thomas.gutb...@anthrotec.de -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php