diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-12 17:55:01 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-20 22:18:06 +0200 |
commit | b70c6a128fe5d0053b7971881696eafce4cb7c26 (patch) | |
tree | 641ff76531803c207a92d86f47d46b6dd93ab6d3 /core/Controller/SearchController.php | |
parent | 2b0d82675f669f00ad90f2750b1832a60ec9f766 (diff) | |
download | nextcloud-server-b70c6a128fe5d0053b7971881696eafce4cb7c26.tar.gz nextcloud-server-b70c6a128fe5d0053b7971881696eafce4cb7c26.zip |
Update core to PHP 7.4 standard
- Typed properties
- Port to LoggerInterface
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/Controller/SearchController.php')
-rw-r--r-- | core/Controller/SearchController.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/core/Controller/SearchController.php b/core/Controller/SearchController.php index 95d100a393d..5881ec2db86 100644 --- a/core/Controller/SearchController.php +++ b/core/Controller/SearchController.php @@ -28,23 +28,20 @@ namespace OC\Core\Controller; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\JSONResponse; -use OCP\ILogger; use OCP\IRequest; use OCP\ISearch; use OCP\Search\Result; +use Psr\Log\LoggerInterface; class SearchController extends Controller { - - /** @var ISearch */ - private $searcher; - /** @var ILogger */ - private $logger; + private ISearch $searcher; + private LoggerInterface $logger; public function __construct( string $appName, IRequest $request, ISearch $search, - ILogger $logger + LoggerInterface $logger ) { parent::__construct($appName, $request); |