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
null;
- }
return $entity;
}
}
Best regards
Thomas Gutbier
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
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
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
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
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
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
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
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