From d7201cbc4b80f2b89e317807d65c6cb3ecc76d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Mon, 4 Nov 2019 13:00:52 +0100 Subject: [PATCH] Fixed phpstan error --- phpstan.neon | 2 -- src/Builder/ContentsAwareBuilderTrait.php | 1 - 2 files changed, 3 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 0af0db8..603ddc8 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -18,5 +18,3 @@ parameters: - '/Method Setono\\SyliusFacebookTrackingPlugin\\Builder\\BuilderInterface\:\:createFromJson\(\) has no return typehint specified\./' - '/Method Setono\\SyliusFacebookTrackingPlugin\\Builder\\Builder\:\:create\(\) has no return typehint specified\./' - '/Method Setono\\SyliusFacebookTrackingPlugin\\Builder\\Builder\:\:createFromJson\(\) has no return typehint specified\./' - - '/\:\:addContent\(\) has parameter \$content with no typehint specified/' - - '/\:\:addContentId\(\) has parameter \$contentId with no typehint specified/' diff --git a/src/Builder/ContentsAwareBuilderTrait.php b/src/Builder/ContentsAwareBuilderTrait.php index 95d920f..2284e5f 100644 --- a/src/Builder/ContentsAwareBuilderTrait.php +++ b/src/Builder/ContentsAwareBuilderTrait.php @@ -35,7 +35,6 @@ public function addContent($content): self } $this->data['contents'][] = $content; - return $this; }