From 6541519acb31c1fb835f668e442e3284fec84606 Mon Sep 17 00:00:00 2001 From: Cedric Ziel Date: Fri, 28 Nov 2014 11:10:42 +0100 Subject: [PATCH] [TASK] Make getCompiledFile a static method - fixes #103 #104 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. --- Classes/Service/CompileService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Service/CompileService.php b/Classes/Service/CompileService.php index 586944f48..8ca93ccc3 100644 --- a/Classes/Service/CompileService.php +++ b/Classes/Service/CompileService.php @@ -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'){ @@ -80,4 +80,4 @@ public function getVariablesFromConstants(){ return $variables; } -} \ No newline at end of file +}