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

Commit

Permalink
[BUGFIX] #1: PHP Runtime Deprecation Notice
Browse files Browse the repository at this point in the history
Fix PHP warning
#1: PHP Runtime Deprecation Notice: Non-static method In2code\Femanager\Utility\LogUtility::getLog() should not be called statically in /homepages/7/d214810687/htdocs/www/finatem/htdocs/typo3conf/ext/femanager/Classes/Utility/LogUtility.php line 51

related: #76140
  • Loading branch information
einpraegsam committed May 14, 2016
1 parent bdf3544 commit ded52cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Utility/LogUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ public static function log($state, User $user, array $additionalProperties = [])
/**
* @return Dispatcher
*/
protected function getDispatcher()
protected static function getDispatcher()
{
return self::getObjectManager()->get(Dispatcher::class);
}

/**
* @return Log
*/
protected function getLog()
protected static function getLog()
{
return self::getObjectManager()->get(Log::class);
}

/**
* @return LogRepository
*/
protected function getLogRepository()
protected static function getLogRepository()
{
return self::getObjectManager()->get(LogRepository::class);
}
Expand Down

0 comments on commit ded52cc

Please sign in to comment.