Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f89da0

Browse files
committedMar 24, 2021
Support @reqired annotation and #[Required] attribute for properties.
Prevent PropertyNotSetInConstructor when ContainerAwareTrait used. fix test
1 parent 6c5bead commit 9f89da0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎tests/acceptance/acceptance/PropertyAccessorInterface.feature

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ Feature: PropertyAccessorInterface
4141
"""
4242
class Company
4343
{
44-
public string $name = 'Acme';
44+
/**
45+
* @var string
46+
*/
47+
public $name = 'Acme';
4548
}
4649
$company = new Company();
4750

‎tests/acceptance/acceptance/RequiredAttribute.feature

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ Feature: RequiredAttribute
4242
<?php
4343
4444
class MyServiceB {
45-
/** @var string */
45+
/**
46+
* @var string
47+
*/
4648
public $a;
4749
public function __construct(){}
4850

0 commit comments

Comments
 (0)
Please sign in to comment.