Re: [RFC] Shorter attribute syntax
From: Sebastian Bergmann Date: Tue, 09 Jun 2020 15:17:06 +0000 Subject: Re: [RFC] Shorter attribute syntax References: 1 2 Groups: php.internals Request: Send a blank email to internals+get-110452@lists.php.net to get a copy of this message
Am 09.06.2020 um 13:55 schrieb Benjamin Eberlei:Larry's suggestion about #[Attr] makes an important argument about allowing to declare attributes in code in PHP 7 in a forward compatible way that has not been brought up before. /** @ORM\Entity */ #[ORM\Entity] class User {} This code would work on PHP 7 and 8.This would be great!
Thread (41 messages)
| « previous | php.internals (#110452) | next » |
|---|