From 206ccb26763fd02d223304fff1329d7c519629b7 Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Wed, 26 May 2021 11:52:03 +0000 Subject: [PATCH] SW-26068 - Fix json error handling in administration --- .phpstan-baseline.neon | 903 +----------------- engine/Library/Enlight/Controller/Action.php | 4 +- .../Controller/Request/RequestHttp.php | 3 +- engine/Shopware/Controllers/Backend/Error.php | 10 + .../Controllers/Backend/ErrorTest.php | 56 ++ 5 files changed, 74 insertions(+), 902 deletions(-) create mode 100644 tests/Functional/Controllers/Backend/ErrorTest.php diff --git a/.phpstan-baseline.neon b/.phpstan-baseline.neon index 6612b29ae24..fd121770fe9 100644 --- a/.phpstan-baseline.neon +++ b/.phpstan-baseline.neon @@ -360,11 +360,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/AttributeBundle/Controllers/Backend/AttributeData.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Bundle/AttributeBundle/Controllers/Backend/AttributeData.php - - message: "#^Method Shopware_Controllers_Backend_AttributeData\\:\\:saveDataAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -390,11 +385,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/AttributeBundle/Controllers/Backend/Attributes.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 18 - path: engine/Shopware/Bundle/AttributeBundle/Controllers/Backend/Attributes.php - - message: "#^Method Shopware_Controllers_Backend_Attributes\\:\\:getTypesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -450,11 +440,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/AttributeBundle/Controllers/Backend/EntitySearch.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Bundle/AttributeBundle/Controllers/Backend/EntitySearch.php - - message: "#^Method Shopware\\\\Bundle\\\\AttributeBundle\\\\DependencyInjection\\\\Compiler\\\\StaticResourcesCompilerPass\\:\\:process\\(\\) has no return typehint specified\\.$#" count: 1 @@ -1190,11 +1175,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/Benchmark.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/Benchmark.php - - message: "#^Method Shopware_Controllers_Backend_Benchmark\\:\\:saveIndustryAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -1275,16 +1255,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/BenchmarkLocalOverview.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/BenchmarkLocalOverview.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 4 - path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/BenchmarkLocalOverview.php - - message: "#^Method Shopware_Controllers_Backend_BenchmarkLocalOverview\\:\\:initAcl\\(\\) has no return typehint specified\\.$#" count: 1 @@ -1330,11 +1300,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/BenchmarkOverview.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Bundle/BenchmarkBundle/Controllers/Backend/BenchmarkOverview.php - - message: "#^Method Shopware_Controllers_Backend_BenchmarkOverview\\:\\:getShopsAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -1935,31 +1900,11 @@ parameters: count: 1 path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Api/ContentType.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 8 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Api/ContentType.php - - message: "#^Method Shopware\\\\Bundle\\\\ContentTypeBundle\\\\Controller\\\\Backend\\\\ContentType\\:\\:setContainer\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentType.php - - - message: "#^Cannot call method Engine\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentType.php - - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentType.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 10 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentType.php - - message: "#^Method Shopware\\\\Bundle\\\\ContentTypeBundle\\\\Controller\\\\Backend\\\\ContentType\\:\\:listAction\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#" count: 1 @@ -1985,11 +1930,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentTypeManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentTypeManager.php - - message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, array\\\\|false given\\.$#" count: 2 @@ -2015,26 +1955,11 @@ parameters: count: 1 path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Backend/ContentTypeManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 15 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Frontend/ContentType.php - - message: "#^Method Shopware\\\\Bundle\\\\ContentTypeBundle\\\\Controller\\\\Frontend\\\\ContentType\\:\\:postDispatch\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Frontend/ContentType.php - - - message: "#^Cannot call method Template\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Frontend/ContentType.php - - - - message: "#^Cannot call method templateExists\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Bundle/ContentTypeBundle/Controller/Frontend/ContentType.php - - message: "#^Method Shopware\\\\Bundle\\\\ContentTypeBundle\\\\Controller\\\\Frontend\\\\ContentType\\:\\:getBreadcrumb\\(\\) has parameter \\$item with no value type specified in iterable type array\\.$#" count: 1 @@ -2755,11 +2680,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/ContentTypeBundle/Subscriber/EntitySearchSubscriber.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Bundle/ContentTypeBundle/Subscriber/EntitySearchSubscriber.php - - message: "#^Method Shopware\\\\Bundle\\\\ContentTypeBundle\\\\Subscriber\\\\EntitySearchSubscriber\\:\\:filterTypes\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" count: 1 @@ -6421,12 +6341,12 @@ parameters: path: engine/Shopware/Bundle/MailBundle/Controllers/Backend/MailLog.php - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 + message: "#^Method Shopware\\\\Bundle\\\\MailBundle\\\\Controllers\\\\Backend\\\\MailLog\\:\\:resendMailAction\\(\\) has parameter \\$recipients with no value type specified in iterable type array\\.$#" + count: 1 path: engine/Shopware/Bundle/MailBundle/Controllers/Backend/MailLog.php - - message: "#^Method Shopware\\\\Bundle\\\\MailBundle\\\\Controllers\\\\Backend\\\\MailLog\\:\\:resendMailAction\\(\\) has parameter \\$recipients with no value type specified in iterable type array\\.$#" + message: "#^Strict comparison using \\=\\=\\= between Enlight_View_Default and null will always evaluate to false\\.$#" count: 1 path: engine/Shopware/Bundle/MailBundle/Controllers/Backend/MailLog.php @@ -11040,11 +10960,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/SitemapBundle/ConfigHandler/File.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Bundle/SitemapBundle/Controller/Frontend/SitemapIndexXml.php - - message: "#^Method Shopware\\\\Bundle\\\\SitemapBundle\\\\Provider\\\\BaseUrlProvider\\:\\:reset\\(\\) has no return typehint specified\\.$#" count: 1 @@ -23575,11 +23490,6 @@ parameters: count: 1 path: engine/Shopware/Components/LastArticlesSubscriber.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Components/LastArticlesSubscriber.php - - message: "#^Method Shopware\\\\Components\\\\LastArticlesSubscriber\\:\\:cleanupLastProducts\\(\\) has no return typehint specified\\.$#" count: 1 @@ -23695,11 +23605,6 @@ parameters: count: 1 path: engine/Shopware/Components/License/Service/LicenseServiceSubscriber.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Components/License/Service/LicenseServiceSubscriber.php - - message: "#^Cannot call method get\\(\\) on Enlight_Plugin_Bootstrap\\|Enlight_Plugin_Namespace\\|null\\.$#" count: 1 @@ -26495,11 +26400,6 @@ parameters: count: 1 path: engine/Shopware/Components/Privacy/CookieRemoveSubscriber.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Components/Privacy/CookieRemoveSubscriber.php - - message: "#^Parameter \\#2 \\$values of method Symfony\\\\Component\\\\HttpFoundation\\\\ResponseHeaderBag\\:\\:set\\(\\) expects array\\\\|string, string\\|false given\\.$#" count: 1 @@ -28086,7 +27986,7 @@ parameters: path: engine/Shopware/Components/Theme/EventListener/ConfigLoader.php - - message: "#^Cannot call method hasTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" + message: "#^Negated boolean expression is always false\\.$#" count: 1 path: engine/Shopware/Components/Theme/EventListener/ConfigLoader.php @@ -29135,56 +29035,11 @@ parameters: count: 1 path: engine/Shopware/Components/WebLinkManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Addresses.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Articles.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Api/Caches.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Categories.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Controllers/Api/Countries.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/CustomerGroups.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Controllers/Api/CustomerStreams.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Customers.php - - message: "#^Method Shopware_Controllers_Api_Error\\:\\:invalidAction\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Controllers/Api/Error.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 11 - path: engine/Shopware/Controllers/Api/Error.php - - message: "#^Method Shopware_Controllers_Api_Error\\:\\:noAuthAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -29195,11 +29050,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Api/Error.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Api/GenerateArticleImages.php - - message: "#^Method Shopware_Controllers_Api_GenerateArticleImages\\:\\:batchAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -29210,16 +29060,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Api/GenerateArticleImages.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Manufacturers.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Media.php - - message: "#^Method Shopware_Controllers_Api_Media\\:\\:prepareUploadedFile\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#" count: 1 @@ -29240,21 +29080,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Api/Media.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Api/Orders.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/PaymentMethods.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/PropertyGroups.php - - message: "#^Property Shopware_Controllers_Api_Rest\\:\\:\\$apiBaseUrl has no typehint specified\\.$#" count: 1 @@ -29280,31 +29105,16 @@ parameters: count: 1 path: engine/Shopware/Controllers/Api/Rest.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Api/Rest.php - - message: "#^Method Shopware_Controllers_Api_Rest\\:\\:batchAction\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Controllers/Api/Rest.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Api/Rest.php - - message: "#^Method Shopware_Controllers_Api_Rest\\:\\:batchDeleteAction\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Controllers/Api/Rest.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Shops.php - - message: "#^Method Shopware_Controllers_Api_Translations\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -29315,11 +29125,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Api/Translations.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Api/Translations.php - - message: "#^Method Shopware_Controllers_Api_Translations\\:\\:postAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -29335,26 +29140,11 @@ parameters: count: 1 path: engine/Shopware/Controllers/Api/Translations.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Controllers/Api/Users.php - - message: "#^Cannot call method getIdentity\\(\\) on object\\|null\\.$#" count: 1 path: engine/Shopware/Controllers/Api/Users.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Api/Variants.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Api/Version.php - - message: "#^Method Shopware_Controllers_Backend_Address\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -29430,11 +29220,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Analytics.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 4 - path: engine/Shopware/Controllers/Backend/Analytics.php - - message: "#^Method Shopware_Controllers_Backend_Analytics\\:\\:shopListAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -29770,11 +29555,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Application.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Backend/Application.php - - message: "#^Method Shopware_Controllers_Backend_Application\\:\\:detailAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -30015,11 +29795,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Article.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 66 - path: engine/Shopware/Controllers/Backend/Article.php - - message: "#^Method Shopware_Controllers_Backend_Article\\:\\:saveConfiguratorSetAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -31195,11 +30970,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/ArticleList.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 19 - path: engine/Shopware/Controllers/Backend/ArticleList.php - - message: "#^Method Shopware_Controllers_Backend_ArticleList\\:\\:saveSingleEntityAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -31360,11 +31130,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/ArticlePriceVariation.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 8 - path: engine/Shopware/Controllers/Backend/ArticlePriceVariation.php - - message: "#^Method Shopware_Controllers_Backend_ArticlePriceVariation\\:\\:updatePriceVariationAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -31435,11 +31200,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Banner.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 11 - path: engine/Shopware/Controllers/Backend/Banner.php - - message: "#^Method Shopware_Controllers_Backend_Banner\\:\\:init\\(\\) has no return typehint specified\\.$#" count: 1 @@ -31525,11 +31285,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Base.php - - - message: "#^Cannot call method addTemplateDir\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/Base.php - - message: "#^Cannot call method Backend\\(\\) on Enlight_Plugin_PluginManager\\|null\\.$#" count: 1 @@ -31545,11 +31300,6 @@ parameters: count: 19 path: engine/Shopware/Controllers/Backend/Base.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 28 - path: engine/Shopware/Controllers/Backend/Base.php - - message: "#^Method Shopware_Controllers_Backend_Base\\:\\:getTaxesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -31800,11 +31550,6 @@ parameters: count: 4 path: engine/Shopware/Controllers/Backend/Blog.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 17 - path: engine/Shopware/Controllers/Backend/Blog.php - - message: "#^Method Shopware_Controllers_Backend_Blog\\:\\:getBlogCategoriesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -31960,11 +31705,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Cache.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Backend/Cache.php - - message: "#^Method Shopware_Controllers_Backend_Cache\\:\\:clearCacheAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -32055,11 +31795,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/CanceledOrder.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 21 - path: engine/Shopware/Controllers/Backend/CanceledOrder.php - - message: "#^Cannot call method createQueryBuilder\\(\\) on Shopware\\\\Components\\\\Model\\\\ModelManager\\|null\\.$#" count: 4 @@ -32210,11 +31945,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Category.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 19 - path: engine/Shopware/Controllers/Backend/Category.php - - message: "#^Method Shopware_Controllers_Backend_Category\\:\\:addCategoryArticlesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -32445,11 +32175,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Backend/Config.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 20 - path: engine/Shopware/Controllers/Backend/Config.php - - message: "#^Method Shopware_Controllers_Backend_Config\\:\\:getFormAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -32755,11 +32480,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/CoreLicense.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 11 - path: engine/Shopware/Controllers/Backend/CoreLicense.php - - message: "#^Parameter \\#1 \\$pdo of class Shopware\\\\Components\\\\LicenseInstaller constructor expects Doctrine\\\\DBAL\\\\Connection, object\\|null given\\.$#" count: 1 @@ -32815,11 +32535,6 @@ parameters: count: 3 path: engine/Shopware/Controllers/Backend/CustomFacet.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/CustomFacet.php - - message: "#^Method Shopware_Controllers_Backend_CustomFacet\\:\\:copyCategorySettingsAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -32845,11 +32560,6 @@ parameters: count: 3 path: engine/Shopware/Controllers/Backend/CustomSorting.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/CustomSorting.php - - message: "#^Method Shopware_Controllers_Backend_CustomSorting\\:\\:changePositionAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -32870,11 +32580,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Customer.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 17 - path: engine/Shopware/Controllers/Backend/Customer.php - - message: "#^Method Shopware_Controllers_Backend_Customer\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -33175,11 +32880,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/CustomerStream.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 14 - path: engine/Shopware/Controllers/Backend/CustomerStream.php - - message: "#^Method Shopware_Controllers_Backend_CustomerStream\\:\\:indexStreamAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -33310,11 +33010,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Document.php - - - message: "#^Cannot call method setTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/Document.php - - message: "#^Method Shopware_Controllers_Backend_Document\\:\\:duplicatePropertiesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -33340,11 +33035,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Emotion.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 36 - path: engine/Shopware/Controllers/Backend/Emotion.php - - message: "#^Method Shopware_Controllers_Backend_Emotion\\:\\:getMasterLandingPagesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -33725,11 +33415,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/EmotionPreset.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 13 - path: engine/Shopware/Controllers/Backend/EmotionPreset.php - - message: "#^Method Shopware_Controllers_Backend_EmotionPreset\\:\\:previewAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -33890,11 +33575,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Export.php - - - message: "#^Cannot call method Engine\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/Export.php - - message: "#^Parameter \\#1 \\$handleResource of method sExport\\:\\:executeExport\\(\\) expects resource, resource\\|false given\\.$#" count: 1 @@ -33940,11 +33620,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/ExtJs.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/ExtJs.php - - message: "#^Method Shopware_Controllers_Backend_ExtJs\\:\\:loadAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -33975,11 +33650,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Feedback.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Backend/Feedback.php - - message: "#^Method Shopware_Controllers_Backend_Feedback\\:\\:disableInstallationSurveyAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34060,11 +33730,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/FirstRunWizard.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 19 - path: engine/Shopware/Controllers/Backend/FirstRunWizard.php - - message: "#^Method Shopware_Controllers_Backend_FirstRunWizard\\:\\:pingServerAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34110,11 +33775,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/FirstRunWizard.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/FirstRunWizard.php - - message: "#^Method Shopware_Controllers_Backend_FirstRunWizard\\:\\:registerDomainAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34125,11 +33785,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/FirstRunWizard.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/FirstRunWizard.php - - message: "#^Cannot access property \\$accessToken on Enlight_Components_Session_Namespace\\|null\\.$#" count: 2 @@ -34145,11 +33800,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/FirstRunWizardPluginManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 15 - path: engine/Shopware/Controllers/Backend/FirstRunWizardPluginManager.php - - message: "#^Method Shopware_Controllers_Backend_FirstRunWizardPluginManager\\:\\:getRecommendedPluginsAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34190,11 +33840,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Form.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 24 - path: engine/Shopware/Controllers/Backend/Form.php - - message: "#^Method Shopware_Controllers_Backend_Form\\:\\:createFormAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34300,11 +33945,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Index.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 24 - path: engine/Shopware/Controllers/Backend/Index.php - - message: "#^Method Shopware_Controllers_Backend_Index\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34385,11 +34025,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Log.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Backend/Log.php - - message: "#^Method Shopware_Controllers_Backend_Log\\:\\:deleteLogsAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34465,11 +34100,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Logger.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/Logger.php - - message: "#^Method Shopware_Controllers_Backend_Login\\:\\:init\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34485,11 +34115,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Login.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Backend/Login.php - - message: "#^Cannot call method find\\(\\) on Shopware\\\\Components\\\\Model\\\\ModelManager\\|null\\.$#" count: 2 @@ -34580,11 +34205,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Mail.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 48 - path: engine/Shopware/Controllers/Backend/Mail.php - - message: "#^Method Shopware_Controllers_Backend_Mail\\:\\:createMailAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34655,11 +34275,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Mail.php - - - message: "#^Cannot call method Engine\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/Mail.php - - message: "#^Method Shopware_Controllers_Backend_Mail\\:\\:addAttachmentAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -34730,11 +34345,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/ManualSorting.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Backend/ManualSorting.php - - message: "#^Method Shopware\\\\Controllers\\\\Backend\\\\ManualSorting\\:\\:assignPositionAction\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" count: 1 @@ -34760,11 +34370,6 @@ parameters: count: 3 path: engine/Shopware/Controllers/Backend/MediaManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 34 - path: engine/Shopware/Controllers/Backend/MediaManager.php - - message: "#^Method Shopware_Controllers_Backend_MediaManager\\:\\:downloadAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -35430,11 +35035,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/NewsletterManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 35 - path: engine/Shopware/Controllers/Backend/NewsletterManager.php - - message: "#^Method Shopware_Controllers_Backend_NewsletterManager\\:\\:createRecipientAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -35590,11 +35190,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Backend/Notification.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 4 - path: engine/Shopware/Controllers/Backend/Notification.php - - message: "#^Method Shopware_Controllers_Backend_Notification\\:\\:getCustomerListAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -35625,11 +35220,6 @@ parameters: count: 3 path: engine/Shopware/Controllers/Backend/Order.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 37 - path: engine/Shopware/Controllers/Backend/Order.php - - message: "#^Method Shopware_Controllers_Backend_Order\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36135,11 +35725,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Overview.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/Overview.php - - message: "#^Method Shopware_Controllers_Backend_Overview\\:\\:initAcl\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36165,11 +35750,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Backend/Partner.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 10 - path: engine/Shopware/Controllers/Backend/Partner.php - - message: "#^Method Shopware_Controllers_Backend_Partner\\:\\:getStatisticListAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36285,11 +35865,6 @@ parameters: count: 4 path: engine/Shopware/Controllers/Backend/Payment.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 10 - path: engine/Shopware/Controllers/Backend/Payment.php - - message: "#^Method Shopware_Controllers_Backend_Payment\\:\\:getCountriesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36360,11 +35935,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Performance.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 13 - path: engine/Shopware/Controllers/Backend/Performance.php - - message: "#^Method Shopware_Controllers_Backend_Performance\\:\\:toggleProductiveModeAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36630,11 +36200,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/PluginInstaller.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 21 - path: engine/Shopware/Controllers/Backend/PluginInstaller.php - - message: "#^Method Shopware\\\\Controllers\\\\Backend\\\\PluginInstaller\\:\\:updateAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36710,11 +36275,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/PluginManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 38 - path: engine/Shopware/Controllers/Backend/PluginManager.php - - message: "#^Method Shopware\\\\Controllers\\\\Backend\\\\PluginManager\\:\\:rangeDownloadAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -36885,11 +36445,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/PluginManager.php - - - message: "#^Cannot call method clearAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/PluginManager.php - - message: "#^Cannot call method createQueryBuilder\\(\\) on object\\|null\\.$#" count: 1 @@ -36960,11 +36515,6 @@ parameters: count: 7 path: engine/Shopware/Controllers/Backend/Premium.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 11 - path: engine/Shopware/Controllers/Backend/Premium.php - - message: "#^Method Shopware_Controllers_Backend_Premium\\:\\:getPremiumArticlesAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37045,11 +36595,6 @@ parameters: count: 3 path: engine/Shopware/Controllers/Backend/ProductFeed.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 10 - path: engine/Shopware/Controllers/Backend/ProductFeed.php - - message: "#^Method Shopware_Controllers_Backend_ProductFeed\\:\\:getDetailFeedAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37135,11 +36680,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/ProductStream.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Backend/ProductStream.php - - message: "#^Method Shopware_Controllers_Backend_ProductStream\\:\\:loadPreviewAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37250,11 +36790,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/RiskManagement.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Controllers/Backend/RiskManagement.php - - message: "#^Method Shopware_Controllers_Backend_RiskManagement\\:\\:deleteRuleAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37300,11 +36835,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Search.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/Search.php - - message: "#^Method Shopware_Controllers_Backend_Search\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37375,11 +36905,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Shipping.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 19 - path: engine/Shopware/Controllers/Backend/Shipping.php - - message: "#^Method Shopware_Controllers_Backend_Shipping\\:\\:getListAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37500,11 +37025,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Site.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 21 - path: engine/Shopware/Controllers/Backend/Site.php - - message: "#^Method Shopware_Controllers_Backend_Site\\:\\:createGroupAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -37580,11 +37100,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Snippet.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 16 - path: engine/Shopware/Controllers/Backend/Snippet.php - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|false given\\.$#" count: 1 @@ -37845,11 +37360,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Supplier.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 8 - path: engine/Shopware/Controllers/Backend/Supplier.php - - message: "#^Cannot call method find\\(\\) on Shopware\\\\Components\\\\Model\\\\ModelManager\\|null\\.$#" count: 2 @@ -37970,11 +37480,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Systeminfo.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Controllers/Backend/Systeminfo.php - - message: "#^Method Shopware_Controllers_Backend_Systeminfo\\:\\:getPathListAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38050,11 +37555,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Theme.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Backend/Theme.php - - message: "#^Method Shopware_Controllers_Backend_Theme\\:\\:previewAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38215,11 +37715,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Translation.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Backend/Translation.php - - message: "#^Method Shopware_Controllers_Backend_Translation\\:\\:readTranslationAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38255,11 +37750,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/UpdateWizard.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Backend/UpdateWizard.php - - message: "#^Cannot call method getIdentity\\(\\) on object\\|null\\.$#" count: 1 @@ -38285,11 +37775,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/UserConfig.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Backend/UserConfig.php - - message: "#^Method Shopware_Controllers_Backend_UserConfig\\:\\:saveAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38320,11 +37805,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/UserManager.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 21 - path: engine/Shopware/Controllers/Backend/UserManager.php - - message: "#^Method Shopware_Controllers_Backend_UserManager\\:\\:postDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38540,11 +38020,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Voucher.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 11 - path: engine/Shopware/Controllers/Backend/Voucher.php - - message: "#^Method Shopware_Controllers_Backend_Voucher\\:\\:getVoucherAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38695,11 +38170,6 @@ parameters: count: 5 path: engine/Shopware/Controllers/Backend/Widgets.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 26 - path: engine/Shopware/Controllers/Backend/Widgets.php - - message: "#^Cannot call method getIdentity\\(\\) on object\\|null\\.$#" count: 1 @@ -38845,11 +38315,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Backend/Widgets.php - - - message: "#^Cannot call method Engine\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Backend/Widgets.php - - message: "#^Cannot call method IsHTML\\(\\) on object\\|null\\.$#" count: 1 @@ -38930,11 +38395,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Account.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Account.php - - message: "#^Cannot access offset 'additional' on array\\|false\\.$#" count: 5 @@ -38945,11 +38405,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Account.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 48 - path: engine/Shopware/Controllers/Frontend/Account.php - - message: "#^Method Shopware_Controllers_Frontend_Account\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -38960,16 +38415,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Account.php - - - message: "#^Cannot access property \\$sUserData on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Account.php - - - - message: "#^Cannot access property \\$sFormData on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Account.php - - message: "#^Cannot access property \\$sUserId on Enlight_Components_Session_Namespace\\|null\\.$#" count: 4 @@ -39130,11 +38575,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Account.php - - - message: "#^Cannot call method fetch\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Account.php - - message: "#^Cannot call method setEncoderName\\(\\) on Shopware\\\\Models\\\\Customer\\\\Customer\\|null\\.$#" count: 1 @@ -39150,11 +38590,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Account.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Frontend/Account.php - - message: "#^Method Shopware_Controllers_Frontend_Account\\:\\:saveProfileAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -39225,16 +38660,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Frontend/Address.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 18 - path: engine/Shopware/Controllers/Frontend/Address.php - - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Address.php - - message: "#^Method Shopware_Controllers_Frontend_Address\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -39375,21 +38800,11 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/AjaxSearch.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/AjaxSearch.php - - message: "#^Cannot call method get\\(\\) on Shopware_Components_Config\\|null\\.$#" count: 1 path: engine/Shopware/Controllers/Frontend/AjaxSearch.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Frontend/AjaxSearch.php - - message: "#^Method Shopware_Controllers_Frontend_AjaxSearch\\:\\:convertProducts\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -39420,11 +38835,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Blog.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Blog.php - - message: "#^Cannot call method getRepository\\(\\) on Shopware\\\\Components\\\\Model\\\\ModelManager\\|null\\.$#" count: 4 @@ -39435,16 +38845,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Blog.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Blog.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 7 - path: engine/Shopware/Controllers/Frontend/Blog.php - - message: "#^Method Shopware_Controllers_Frontend_Blog\\:\\:detailAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -39610,11 +39010,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Campaign.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Campaign.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" count: 1 @@ -39655,16 +39050,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Checkout.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 81 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - message: "#^Method Shopware_Controllers_Frontend_Checkout\\:\\:flagPaymentBlocked\\(\\) has no return typehint specified\\.$#" count: 1 @@ -39690,21 +39075,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Checkout.php - - - message: "#^Cannot access property \\$sUserData on Enlight_View_Default\\|null\\.$#" - count: 21 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 12 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - - - message: "#^Cannot access property \\$sBasket on Enlight_View_Default\\|null\\.$#" - count: 24 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - message: "#^Cannot access offset 'id' on array\\|false\\.$#" count: 1 @@ -39740,11 +39110,6 @@ parameters: count: 3 path: engine/Shopware/Controllers/Frontend/Checkout.php - - - message: "#^Cannot call method clearAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - message: "#^Cannot call method getNamespace\\(\\) on object\\|null\\.$#" count: 2 @@ -39765,11 +39130,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Checkout.php - - - message: "#^Cannot access property \\$sPayment on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Checkout.php - - message: "#^Cannot call method get\\(\\) on Enlight_Components_Session_Namespace\\|null\\.$#" count: 3 @@ -40195,11 +39555,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Compare.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Compare.php - - message: "#^Cannot call method Articles\\(\\) on Shopware_Components_Modules\\|null\\.$#" count: 1 @@ -40210,11 +39565,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Compare.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 4 - path: engine/Shopware/Controllers/Frontend/Compare.php - - message: "#^Method Shopware_Controllers_Frontend_Compare\\:\\:addArticleAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40255,11 +39605,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Custom.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Custom.php - - message: "#^Cannot call method getShopContext\\(\\) on object\\|null\\.$#" count: 1 @@ -40275,31 +39620,11 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Custom.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Frontend/Custom.php - - - - message: "#^Cannot call method templateExists\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Custom.php - - - - message: "#^Cannot call method fetch\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Custom.php - - message: "#^Method Shopware_Controllers_Frontend_Detail\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Controllers/Frontend/Detail.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Detail.php - - message: "#^Method Shopware_Controllers_Frontend_Detail\\:\\:errorAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40315,11 +39640,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Detail.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 15 - path: engine/Shopware/Controllers/Frontend/Detail.php - - message: "#^Method Shopware_Controllers_Frontend_Detail\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40350,11 +39670,6 @@ parameters: count: 4 path: engine/Shopware/Controllers/Frontend/Detail.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Frontend/Detail.php - - message: "#^Cannot call method sCategories\\(\\) on Shopware_Components_Modules\\|null\\.$#" count: 1 @@ -40425,16 +39740,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Error.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Frontend/Error.php - - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Frontend/Error.php - - message: "#^Method Shopware_Controllers_Frontend_Error\\:\\:errorAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40465,16 +39770,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Error.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Error.php - - - - message: "#^Cannot call method clearAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Error.php - - message: "#^Method Shopware_Controllers_Frontend_Error\\:\\:serviceAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40515,21 +39810,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Forms.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Frontend/Forms.php - - - - message: "#^Cannot access property \\$sSupport on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Forms.php - - - - message: "#^Parameter \\#1 \\$view of method Shopware_Controllers_Frontend_Forms\\:\\:renderElementNote\\(\\) expects Enlight_View_Default, Enlight_View_Default\\|null given\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Forms.php - - message: "#^Method Shopware_Controllers_Frontend_Forms\\:\\:commitForm\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40655,11 +39935,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Forms.php - - - message: "#^Cannot access property \\$id on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Forms.php - - message: "#^Possibly invalid array key type \\(array\\|string\\)\\.$#" count: 1 @@ -40695,11 +39970,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Index.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Index.php - - message: "#^Method Shopware_Controllers_Frontend_Index\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40715,11 +39985,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Index.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Index.php - - message: "#^Cannot call method hasCustomerStreamEmotions\\(\\) on object\\|null\\.$#" count: 1 @@ -40755,21 +40020,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Listing.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Frontend/Listing.php - - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Frontend/Listing.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 13 - path: engine/Shopware/Controllers/Frontend/Listing.php - - message: "#^Method Shopware_Controllers_Frontend_Listing\\:\\:layoutAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -40925,11 +40175,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Listing.php - - - message: "#^Cannot call method templateExists\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Listing.php - - message: "#^Method Shopware_Controllers_Frontend_Listing\\:\\:loadCategoryContent\\(\\) should return array but returns array\\|null\\.$#" count: 1 @@ -40970,16 +40215,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Newsletter.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 16 - path: engine/Shopware/Controllers/Frontend/Newsletter.php - - - - message: "#^Cannot access property \\$voteConfirmed on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Frontend/Newsletter.php - - message: "#^Cannot call method Admin\\(\\) on Shopware_Components_Modules\\|null\\.$#" count: 6 @@ -41000,11 +40235,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Frontend/Newsletter.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Frontend/Newsletter.php - - message: "#^Cannot call method query\\(\\) on Enlight_Components_Db_Adapter_Pdo_Mysql\\|null\\.$#" count: 3 @@ -41095,16 +40325,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Note.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Note.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Frontend/Note.php - - message: "#^Method Shopware_Controllers_Frontend_Note\\:\\:postDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41290,21 +40510,11 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Register.php - - - message: "#^Cannot call method setScope\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Register.php - - message: "#^Method Shopware_Controllers_Frontend_Register\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Controllers/Frontend/Register.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Frontend/Register.php - - message: "#^Cannot call method Basket\\(\\) on Shopware_Components_Modules\\|null\\.$#" count: 2 @@ -41365,11 +40575,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Register.php - - - message: "#^Cannot call method fetch\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Register.php - - message: "#^Cannot call method getName\\(\\) on Symfony\\\\Component\\\\Form\\\\FormInterface\\|null\\.$#" count: 1 @@ -41395,11 +40600,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Register.php - - - message: "#^Cannot call method getAssign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Register.php - - message: "#^Method Shopware_Controllers_Frontend_Register\\:\\:writeSession\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" count: 1 @@ -41460,11 +40660,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/RobotsTxt.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/RobotsTxt.php - - message: "#^Cannot call method getRepository\\(\\) on object\\|null\\.$#" count: 1 @@ -41505,11 +40700,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Search.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Search.php - - message: "#^Cannot call method createSearchCriteria\\(\\) on object\\|null\\.$#" count: 1 @@ -41525,11 +40715,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Search.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Search.php - - message: "#^Method Shopware_Controllers_Frontend_Search\\:\\:convertProducts\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -41550,11 +40735,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Sitemap.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Sitemap.php - - message: "#^Method Shopware_Controllers_Frontend_Sitemap\\:\\:getCategoryTree\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -41710,16 +40890,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Frontend/Tellafriend.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Frontend/Tellafriend.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 9 - path: engine/Shopware/Controllers/Frontend/Tellafriend.php - - message: "#^Method Shopware_Controllers_Frontend_Tellafriend\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41770,11 +40940,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Frontend/Tracking.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Widgets/Blog.php - - message: "#^Method Shopware_Controllers_Widgets_Campaign\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41790,11 +40955,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Campaign.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Widgets/Campaign.php - - message: "#^Method Shopware_Controllers_Widgets_Captcha\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41815,16 +40975,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Captcha.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Widgets/Captcha.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Widgets/Captcha.php - - message: "#^Method Shopware_Controllers_Widgets_Captcha\\:\\:getCaptchaByNameAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41855,11 +41005,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Checkout.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Widgets/Checkout.php - - message: "#^Method Shopware_Controllers_Widgets_Compare\\:\\:preDispatch\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41875,11 +41020,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Compare.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 1 - path: engine/Shopware/Controllers/Widgets/Compare.php - - message: "#^Method Shopware_Controllers_Widgets_Emotion\\:\\:indexAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41900,16 +41040,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Emotion.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 3 - path: engine/Shopware/Controllers/Widgets/Emotion.php - - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 14 - path: engine/Shopware/Controllers/Widgets/Emotion.php - - message: "#^Method Shopware_Controllers_Widgets_Emotion\\:\\:emotionArticleSliderAction\\(\\) has no return typehint specified\\.$#" count: 1 @@ -41980,11 +41110,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Index.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 5 - path: engine/Shopware/Controllers/Widgets/Index.php - - message: "#^Cannot call method Core\\(\\) on Enlight_Plugin_PluginManager\\|null\\.$#" count: 1 @@ -42005,21 +41130,11 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Listing.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 11 - path: engine/Shopware/Controllers/Widgets/Listing.php - - message: "#^Method Shopware_Controllers_Widgets_Listing\\:\\:productsAction\\(\\) has no return typehint specified\\.$#" count: 1 path: engine/Shopware/Controllers/Widgets/Listing.php - - - message: "#^Cannot call method loadTemplate\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 4 - path: engine/Shopware/Controllers/Widgets/Listing.php - - message: "#^Cannot call method getShopContext\\(\\) on object\\|null\\.$#" count: 5 @@ -42130,11 +41245,6 @@ parameters: count: 2 path: engine/Shopware/Controllers/Widgets/Listing.php - - - message: "#^Cannot call method fetch\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 2 - path: engine/Shopware/Controllers/Widgets/Listing.php - - message: "#^Cannot call method getQueryAliases\\(\\) on object\\|null\\.$#" count: 1 @@ -42190,11 +41300,6 @@ parameters: count: 1 path: engine/Shopware/Controllers/Widgets/Recommendation.php - - - message: "#^Cannot call method assign\\(\\) on Enlight_View_Default\\|null\\.$#" - count: 6 - path: engine/Shopware/Controllers/Widgets/Recommendation.php - - message: "#^Method Shopware_Controllers_Widgets_Recommendation\\:\\:boughtAction\\(\\) has no return typehint specified\\.$#" count: 1 diff --git a/engine/Library/Enlight/Controller/Action.php b/engine/Library/Enlight/Controller/Action.php index 94f729acafb..ecf26823f28 100644 --- a/engine/Library/Enlight/Controller/Action.php +++ b/engine/Library/Enlight/Controller/Action.php @@ -181,7 +181,7 @@ public function dispatch($action) if (!$event = Shopware()->Events()->notifyUntil(__CLASS__ . '_' . $action_name, $args)) { $this->$action(...$this->getActionArguments($action)); } - + $this->postDispatch(); } @@ -343,7 +343,7 @@ public function setResponse(Enlight_Controller_Response_ResponseHttp $response) /** * Returns view instance * - * @return Enlight_View_Default|null + * @return Enlight_View_Default */ public function View() { diff --git a/engine/Library/Enlight/Controller/Request/RequestHttp.php b/engine/Library/Enlight/Controller/Request/RequestHttp.php index afaf14e30d6..f7d0196acb1 100644 --- a/engine/Library/Enlight/Controller/Request/RequestHttp.php +++ b/engine/Library/Enlight/Controller/Request/RequestHttp.php @@ -211,9 +211,10 @@ public function setHttpHost($host) */ public function setHeader($header, $value) { + $this->headers->set($header, $value); $temp = strtoupper(str_replace('-', '_', $header)); $_SERVER['HTTP_' . $temp] = $value; - $this->headers->set('HTTP_' . $temp, $value); + $this->server->set('HTTP_' . $temp, $value); return $this; } diff --git a/engine/Shopware/Controllers/Backend/Error.php b/engine/Shopware/Controllers/Backend/Error.php index 8fcaa7b5e89..1195d9b385d 100644 --- a/engine/Shopware/Controllers/Backend/Error.php +++ b/engine/Shopware/Controllers/Backend/Error.php @@ -24,4 +24,14 @@ class Shopware_Controllers_Backend_Error extends Shopware_Controllers_Frontend_Error { + public function preDispatch(): void + { + parent::preDispatch(); + + $contentType = $this->Request()->getHeader('Content-Type'); + if ($contentType && strpos($contentType, 'application/json') === 0) { + $this->Front()->Plugins()->Json()->setRenderer(); + $this->View()->assign('success', false); + } + } } diff --git a/tests/Functional/Controllers/Backend/ErrorTest.php b/tests/Functional/Controllers/Backend/ErrorTest.php new file mode 100644 index 00000000000..0c9b55c57e3 --- /dev/null +++ b/tests/Functional/Controllers/Backend/ErrorTest.php @@ -0,0 +1,56 @@ +setHeader('CONTENT_TYPE', 'application/json'); + $controller->setRequest($request); + $controller->setResponse(new \Enlight_Controller_Response_ResponseHttp()); + + $jsonRender = $this->createMock(\Enlight_Controller_Plugins_Json_Bootstrap::class); + $jsonRender->expects(static::once())->method('setRenderer')->willReturn(true); + + $pluginLoader = $this->createMock(\Enlight_Plugin_Namespace_Loader::class); + $pluginLoader->method('Json')->willReturn($jsonRender); + + $front = $this->createMock(\Enlight_Controller_Front::class); + $front->method('Plugins')->willReturn($pluginLoader); + + $controller->setView(new \Enlight_View_Default(new \Enlight_Template_Manager())); + $controller->setFront($front); + $controller->preDispatch(); + + static::assertFalse($controller->View()->getAssign('success')); + } +}