| 1 | <?php |
||
| 22 | class CollectionType extends AbstractType |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * What is this a collection of |
||
| 26 | * |
||
| 27 | * @readable |
||
| 28 | * @var AbstractType |
||
| 29 | */ |
||
| 30 | protected $of; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Creates the CollectionType of the given subtype |
||
| 34 | * |
||
| 35 | * @param AbstractType $of The data type that this is a collection |
||
| 36 | * of |
||
| 37 | */ |
||
| 38 | 10 | public function __construct(AbstractType $of) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritDoc} |
||
| 45 | */ |
||
| 46 | public function equals($object) : bool |
||
| 52 | |||
| 53 | public function __toString() : string |
||
| 57 | } |
||
| 58 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.