BrianHenryIE / strauss

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

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

Closed justlevine closed 1 year ago

justlevine commented 1 year 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 1 year 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.