From b3c05fc3655fba9b2a278bfabaee594ed40df046 Mon Sep 17 00:00:00 2001 From: Peter Thaleikis Date: Tue, 1 Dec 2020 18:44:54 +0400 Subject: [PATCH] Fixing warnings in PHP template Signed-off-by: Peter Thaleikis --- template/php7/function/composer.json | 3 ++- template/php7/function/src/Handler.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/template/php7/function/composer.json b/template/php7/function/composer.json index c5d00cc3..ae4f40e0 100644 --- a/template/php7/function/composer.json +++ b/template/php7/function/composer.json @@ -1,7 +1,8 @@ { - "name": "function-php7.2", + "name": "openfaas/function-php7.2", "description": "Template for function in PHP 7.2", "type": "project", + "license": "proprietary", "config": { "classmap-authoritative": true }, diff --git a/template/php7/function/src/Handler.php b/template/php7/function/src/Handler.php index b451c8a9..8d55eb4c 100644 --- a/template/php7/function/src/Handler.php +++ b/template/php7/function/src/Handler.php @@ -12,7 +12,8 @@ class Handler * @param $data * @return */ - public function handle($data) { + public function handle($data) + { return $data; } }