pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Pseudo pattern jsons starting with digits gives PHP warnings #114

Closed notacouch closed 6 years ago

notacouch commented 7 years ago

sample warning:

Pseudo pattern filename was something like 000-page-header~phone.json:

PHP Warning:  file_get_contents(/.../pattern-lab/../source/_patterns/02-molecules/page-header/000-page-header.twig): failed to open stream: No such file or directory in /.../pattern-lab/vendor/pattern-lab/core/src/PatternLab/Builder.php on line 223

Warning: file_get_contents(/.../pattern-lab/../source/_patterns/02-molecules/page-header/000-page-header.twig): failed to open stream: No such file or directory in /.../pattern-lab/vendor/pattern-lab/core/src/PatternLab/Builder.php on line 223