endel / js2php

JavaScript (ES6) to PHP source-to-source transpiler.
https://endel.github.io/js2php/
MIT License
333 stars 41 forks source link

handling calling parent constructor and assignment of $this->prop #19

Closed allain closed 7 years ago

allain commented 7 years ago

FIX: $this->prop = now causes a public $prop variable to be declared. It wasn't catching them all when multiple ones were being done.

FIX: constructors calling the parent constructor using the super(...) syntax wasn't getting expanded to parent::__construct(...)

endel commented 7 years ago

Nice one! Thanks!