Skip to content

Commit

Permalink
Missing use var
Browse files Browse the repository at this point in the history
  • Loading branch information
jm42 committed Jun 14, 2017
1 parent 378f2aa commit c26a316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ function datetime($format, $strict=false)
{
$type = assert\datetime($format, $strict);

return function($data, $path=null) use($type)
return function($data, $path=null) use($type, $format)
{
$data = $type($data, $path);
$date = \date_create_immutable_from_format($format, $data);
Expand Down

0 comments on commit c26a316

Please sign in to comment.