diff --git a/src/JS.php b/src/JS.php index 1af6bf4..c6973b8 100644 --- a/src/JS.php +++ b/src/JS.php @@ -69,11 +69,14 @@ public static function file($script, $id = '', array $extra = array(), $stack = $extra += array( 'type' => 'text/javascript', ); - $extra['src'] = $script; + $extra['src'] = (string) $script; if (empty($id)) { - $id = $script; + $id = (string) $script; + } else + { + $id = (string) $id; } return Stack::add(