Permalink
Browse files

[Yaml] Fix warning

  • Loading branch information...
1 parent 0603a77 commit a310e67736cd26b7f0897d4949dc23fa863b7f70 @Seldaek Seldaek committed with fabpot Feb 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Parser.php
View
@@ -167,7 +167,7 @@ public function parse($value)
$value = Inline::load($this->lines[0]);
if (is_array($value)) {
$first = reset($value);
- if ('*' === substr($first, 0, 1)) {
+ if (is_string($first) && '*' === substr($first, 0, 1)) {
$data = array();
foreach ($value as $alias) {
$data[] = $this->refs[substr($alias, 1)];

0 comments on commit a310e67

Please sign in to comment.