Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
More silencing suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
bermi committed Jun 18, 2011
1 parent 9e1414f commit 2debb25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion active_support/reflection/base.php
Expand Up @@ -17,7 +17,8 @@ public function parse($source) {
trigger_error('Function "token_get_all" is not defined');
return false;
}
$source = @preg_match('/<\?php.*'.$source.'.*/', $source)?$source:"<?php ".$source;

$source = preg_match('/^<\?php.*/', $source)?$source:"<?php ".$source;
$this->tokens = token_get_all($source);
$this->definitions = array();
reset($this->tokens);
Expand Down

0 comments on commit 2debb25

Please sign in to comment.