This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 3888312ba9 feature #34557 [PropertyInfo] Add support for typed properties (PHP 7.4) (dunglas)
This PR was squashed before being merged into the 5.1-dev branch (closes #34557).

Discussion
----------

[PropertyInfo] Add support for typed properties (PHP 7.4)

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | n/a

Add support for [typed properties](https://wiki.php.net/rfc/typed_properties_v2), a new feature introduced in PHP 7.4:

```php
class Foo
{
    public Bar $bar;
    private ?bool $nullableBoolProp;
}

$this->extractor->getTypes(Foo::class, 'bar'); // Type[]
$this->extractor->getTypes(Foo::class, 'nullableBoolProp'); // Type[]
```

#SymfonyHackday

Commits
-------

7edfe4f741 [PropertyInfo] Add support for typed properties (PHP 7.4)
2019-11-25 08:09:07 +01:00
..
Asset Merge branch '5.0' 2019-11-21 08:02:52 +01:00
BrowserKit Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Cache Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Config Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Console Merge branch '5.0' 2019-11-21 08:02:52 +01:00
CssSelector Merge branch '5.0' 2019-11-21 08:02:52 +01:00
DependencyInjection Merge branch '5.0' 2019-11-21 08:02:52 +01:00
DomCrawler Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Dotenv Merge branch '5.0' 2019-11-21 08:02:52 +01:00
ErrorHandler Merge branch '5.0' 2019-11-21 08:02:52 +01:00
EventDispatcher Merge branch '5.0' 2019-11-21 08:02:52 +01:00
ExpressionLanguage Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Filesystem Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Finder Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Form Merge branch '5.0' 2019-11-21 08:02:52 +01:00
HttpClient Merge branch '5.0' 2019-11-21 08:02:52 +01:00
HttpFoundation Merge branch '5.0' 2019-11-21 08:02:52 +01:00
HttpKernel Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Inflector Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Intl Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Ldap Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Lock Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Mailer Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Messenger Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Mime Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Notifier Merge branch '5.0' 2019-11-21 08:02:52 +01:00
OptionsResolver Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Process Merge branch '5.0' 2019-11-21 08:02:52 +01:00
PropertyAccess Merge branch '5.0' 2019-11-21 08:02:52 +01:00
PropertyInfo [PropertyInfo] Add support for typed properties (PHP 7.4) 2019-11-25 08:09:01 +01:00
Routing Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Security Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Serializer Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Stopwatch Merge branch '5.0' 2019-11-21 08:02:52 +01:00
String Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Templating Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Translation Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Validator Merge branch '5.0' 2019-11-21 08:02:52 +01:00
VarDumper Merge branch '5.0' 2019-11-21 08:02:52 +01:00
VarExporter Merge branch '5.0' 2019-11-21 08:02:52 +01:00
WebLink Merge branch '5.0' 2019-11-21 08:02:52 +01:00
Workflow feature #34573 [DX] [Workflow] Added a way to specify a message when blocking a transition + better default message in case it is not set (lyrixx) 2019-11-24 19:23:34 +01:00
Yaml Merge branch '5.0' 2019-11-21 08:02:52 +01:00