Skip to content

Commit

Permalink
Merge pull request #545 from TheRatG/master
Browse files Browse the repository at this point in the history
strtolower() expects parameter 1 to be string, object given Issue #544
  • Loading branch information
goetas authored Jun 27, 2020
2 parents b15adee + b9a6be8 commit 15162b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Translation/Extractor/File/FormExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private function parseDefaultsCall(Node $node)

$var = $node->var;
while ($var instanceof Node\Expr\MethodCall) {
if (!isset($returningMethods[strtolower($var->name)])) {
if (!isset($returningMethods[strtolower((string) $var->name)])) {
return;
}

Expand Down

0 comments on commit 15162b1

Please sign in to comment.