Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing patternTypePath assignment - Undefined variable: pattern in TwigUtil.php on line 65 #31

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

bradwade
Copy link

If you do not prefix _pattern folders with numbers and dash (00-atoms, 01-molecules) and instead use simply "atoms" and "molecules", the patternTypePath would not get assigned properly as the "else" condition of the ternary logic uses an undefined $pattern variable.

This PR fixes this issue... and will stop the following notice:

php core/console --generate
configuring pattern lab...
PHP Notice:  Undefined variable: pattern in /Users/wadeb/Sites/patterlab-demo/bw-twig-drupal/vendor/pattern-lab/patternengine-twig/src/PatternLab/PatternEngine/Twig/TwigUtil.php on line 65

@EvanLovely EvanLovely merged commit a74edca into pattern-lab:master Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants