diff --git a/CHANGELOG b/CHANGELOG index 5fc3036..901b894 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1 +1,3 @@ +v0.0.7. Fix dumb issue with func_get_args() not being able to be used as a function parameter. Yay PHP! + v0.0.6. Added better asset tags, cachebusters, code cleanup, better documentation, upgrade functionality. diff --git a/Rakefile b/Rakefile index b068983..af050e6 100644 --- a/Rakefile +++ b/Rakefile @@ -31,3 +31,10 @@ namespace :blueprint do FileUtils.rm_r 'blueprint' end end + +namespace :php do + desc "Syntax check trivial.php" + task :syntax_check do + system %{php -l lib/trivial.php} + end +end diff --git a/lib/trivial.php b/lib/trivial.php index 8949ed0..980e498 100644 --- a/lib/trivial.php +++ b/lib/trivial.php @@ -85,14 +85,16 @@ function render_error($error) { * Render style link tags. */ function styles() { - return head_component('style', func_get_args()); + $args = func_get_args(); + return head_component('style', $args); } /** * Render script tags. */ function scripts() { - return head_component('script', func_get_args()); + $args = func_get_args(); + return head_component('script', $args); } /**