| 1 | <?php |
||
| 22 | class Feed |
||
| 23 | { |
||
| 24 | protected $id; |
||
| 25 | protected $project; |
||
| 26 | protected $reference; |
||
| 27 | protected $messages; |
||
| 28 | |||
| 29 | public function __construct(Project $project, $reference = null) |
||
| 34 | |||
| 35 | public function getId() |
||
| 39 | |||
| 40 | public function getProject() |
||
| 44 | |||
| 45 | public function getReference() |
||
| 49 | |||
| 50 | public function getMessages() |
||
| 54 | } |
||
| 55 |
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.