BrianHenryIE / strauss

Prefix PHP namespaces and classnames to allow multiple versions of libraries to exist without conflict.
https://brianhenryie.github.io/strauss/
MIT License
142 stars 23 forks source link

v0.14.1 no longer parses `<?php namespace ...` #80

Closed justlevine closed 11 months ago

justlevine commented 11 months ago

As of v0.14.1, PHP files with an inline namespace ( i.e. <?php namespace MyNamespace; instead of <?php \nnamespace MyNamespace;) are no longer parsed and instead the class is renamed to a global prefix.

E.g.: Source file. image

(Left: 0.14.0 | Right: v0.14.1 ) image

BrianHenryIE commented 11 months ago

Thanks. Fixed in master: https://github.com/BrianHenryIE/strauss/commit/cccf5960336cee703777cf1b835be25832f73ccd

I'm working on another aspect of Strauss today so hopefully there'll be a release this week.