Skip to content

Commit

Permalink
[TASK] Make getCompiledFile a static method - fixes #103 #104
Browse files Browse the repository at this point in the history
TYPO3 sets the deprecation strategy to the strictest possible when in Development mode.
That includes hard Exceptions on PHP 5.6.

This patch makes the method static which shouldnt harm anyone.
  • Loading branch information
cedricziel authored and benjaminkott committed Dec 1, 2014
1 parent 279601a commit 6541519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Service/CompileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CompileService {
/**
* @param string $file
*/
public function getCompiledFile($file) {
public static function getCompiledFile($file) {
$file = GeneralUtility::getFileAbsFileName($file);
$pathParts = pathinfo($file);
if($pathParts['extension'] === 'less'){
Expand Down Expand Up @@ -80,4 +80,4 @@ public function getVariablesFromConstants(){
return $variables;
}

}
}

0 comments on commit 6541519

Please sign in to comment.