From 6a27f7336aae294a51f7d568d8e2320afeebb3bb Mon Sep 17 00:00:00 2001 From: Vitaliy Prokopoov Date: Thu, 11 Feb 2021 13:26:43 +0200 Subject: [PATCH 1/5] Marked classes and interfaces as API --- app/code/Magento/Customer/Controller/RegistryConstants.php | 1 + app/code/Magento/Customer/Model/Context.php | 5 +++++ .../Sales/Model/ResourceModel/Order/Collection/Factory.php | 5 +++++ .../Magento/Shipping/Model/Carrier/CarrierInterface.php | 1 + app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php | 2 ++ app/code/Magento/Widget/Block/BlockInterface.php | 1 + lib/internal/Magento/Framework/Api/AbstractSimpleObject.php | 2 ++ .../Magento/Framework/App/Action/HttpGetActionInterface.php | 6 +++++- .../Framework/App/Action/HttpPostActionInterface.php | 2 ++ .../Magento/Framework/App/CsrfAwareActionInterface.php | 2 ++ .../Magento/Framework/App/Filesystem/DirectoryList.php | 2 ++ lib/internal/Magento/Framework/App/Http/Context.php | 2 ++ .../Magento/Framework/App/Response/Http/FileFactory.php | 2 ++ .../Magento/Framework/App/Response/RedirectInterface.php | 1 + .../Magento/Framework/Controller/Result/JsonFactory.php | 2 ++ lib/internal/Magento/Framework/Controller/Result/Raw.php | 2 ++ lib/internal/Magento/Framework/Data/FormFactory.php | 2 ++ lib/internal/Magento/Framework/DataObject/Factory.php | 5 +++++ .../Magento/Framework/DataObject/IdentityInterface.php | 2 ++ lib/internal/Magento/Framework/Event/ManagerInterface.php | 1 + lib/internal/Magento/Framework/Filesystem/DirectoryList.php | 2 ++ lib/internal/Magento/Framework/Logger/Handler/Base.php | 2 ++ lib/internal/Magento/Framework/View/Element/Html/Select.php | 2 ++ .../Framework/View/Element/UiComponent/ContextInterface.php | 2 ++ .../Element/UiComponent/Control/ButtonProviderInterface.php | 2 ++ .../View/Element/UiComponent/DataProvider/DataProvider.php | 2 ++ .../View/Element/UiComponent/DataProvider/SearchResult.php | 1 + lib/internal/Magento/Framework/View/LayoutFactory.php | 2 ++ 28 files changed, 62 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/Controller/RegistryConstants.php b/app/code/Magento/Customer/Controller/RegistryConstants.php index b56acc634f4c6..f67ad656004e3 100644 --- a/app/code/Magento/Customer/Controller/RegistryConstants.php +++ b/app/code/Magento/Customer/Controller/RegistryConstants.php @@ -8,6 +8,7 @@ /** * Declarations of core registry keys used by the Customer module * + * @api */ class RegistryConstants { diff --git a/app/code/Magento/Customer/Model/Context.php b/app/code/Magento/Customer/Model/Context.php index 63d1fc36b4539..8ea889be7227d 100644 --- a/app/code/Magento/Customer/Model/Context.php +++ b/app/code/Magento/Customer/Model/Context.php @@ -5,6 +5,11 @@ */ namespace Magento\Customer\Model; +/** + * Class Context + * + * @api + */ class Context { /** diff --git a/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php b/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php index 46311a2cea31b..7bd61f4dec404 100644 --- a/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php +++ b/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php @@ -5,6 +5,11 @@ */ namespace Magento\Sales\Model\ResourceModel\Order\Collection; +/** + * Class Factory + * + * @api + */ class Factory { /** diff --git a/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php b/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php index 0cdbd5c078567..01e231a7c8b71 100644 --- a/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php +++ b/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Shipping\Model\Carrier\CarrierInterface * + * @api */ interface CarrierInterface { diff --git a/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php b/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php index 318e729975211..bf977d33ad7e8 100644 --- a/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php +++ b/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php @@ -7,6 +7,8 @@ /** * Interface TabInterface + * + * @api */ interface TabInterface { diff --git a/app/code/Magento/Widget/Block/BlockInterface.php b/app/code/Magento/Widget/Block/BlockInterface.php index 4f795d949b8cd..e73bf2bef052f 100644 --- a/app/code/Magento/Widget/Block/BlockInterface.php +++ b/app/code/Magento/Widget/Block/BlockInterface.php @@ -8,6 +8,7 @@ * Widget Block Interface * * @author Magento Core Team + * @api */ namespace Magento\Widget\Block; diff --git a/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php b/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php index 9cc0ddab3bfcb..7483b1fec58c2 100644 --- a/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php +++ b/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php @@ -8,6 +8,8 @@ /** * Base Class for simple data Objects * @SuppressWarnings(PHPMD.NumberOfChildren) + * + * @api */ abstract class AbstractSimpleObject { diff --git a/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php index c3d3d2d6fd5ec..8604758cae0d7 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php @@ -8,10 +8,14 @@ namespace Magento\Framework\App\Action; +use Magento\Framework\App\ActionInterface; + /** * Marker for actions processing GET requests. + * + * @api */ -interface HttpGetActionInterface extends HttpHeadActionInterface +interface HttpGetActionInterface extends ActionInterface { } diff --git a/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php index a4b87ecfe8452..42edc14bb047a 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing POST requests. + * + * @api */ interface HttpPostActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php b/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php index 8413b945a1141..c3684fd128eae 100644 --- a/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php +++ b/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php @@ -12,6 +12,8 @@ /** * Action that's aware of CSRF protection. + * + * @api */ interface CsrfAwareActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php b/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php index ce150b00a6665..95b649d4a22f6 100644 --- a/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php +++ b/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php @@ -9,6 +9,8 @@ /** * A Magento application specific list of directories + * + * @api */ class DirectoryList extends \Magento\Framework\Filesystem\DirectoryList { diff --git a/lib/internal/Magento/Framework/App/Http/Context.php b/lib/internal/Magento/Framework/App/Http/Context.php index 79a15110234cd..c2993444ee5ed 100644 --- a/lib/internal/Magento/Framework/App/Http/Context.php +++ b/lib/internal/Magento/Framework/App/Http/Context.php @@ -10,6 +10,8 @@ /** * Context data for requests + * + * @api */ class Context { diff --git a/lib/internal/Magento/Framework/App/Response/Http/FileFactory.php b/lib/internal/Magento/Framework/App/Response/Http/FileFactory.php index d599f91ca8ca4..a54a19aa9907b 100644 --- a/lib/internal/Magento/Framework/App/Response/Http/FileFactory.php +++ b/lib/internal/Magento/Framework/App/Response/Http/FileFactory.php @@ -11,6 +11,8 @@ /** * Class FileFactory serves to declare file content in response for download. + * + * @api */ class FileFactory { diff --git a/lib/internal/Magento/Framework/App/Response/RedirectInterface.php b/lib/internal/Magento/Framework/App/Response/RedirectInterface.php index 74a05761b5cbd..085e2cc1cf860 100644 --- a/lib/internal/Magento/Framework/App/Response/RedirectInterface.php +++ b/lib/internal/Magento/Framework/App/Response/RedirectInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Framework\App\Response\RedirectInterface * + * @api */ interface RedirectInterface { diff --git a/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php b/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php index 0afc715f8f379..1d315df8babdd 100644 --- a/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php +++ b/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php @@ -8,6 +8,8 @@ /** * Factory class for @see \Magento\Framework\Controller\Result\Json + * + * @api */ class JsonFactory { diff --git a/lib/internal/Magento/Framework/Controller/Result/Raw.php b/lib/internal/Magento/Framework/Controller/Result/Raw.php index 6355029af4da5..b4a8d7970ed6a 100644 --- a/lib/internal/Magento/Framework/Controller/Result/Raw.php +++ b/lib/internal/Magento/Framework/Controller/Result/Raw.php @@ -12,6 +12,8 @@ /** * A result that contains raw response - may be good for passing through files, * returning result of downloads or some other binary contents + * + * @api */ class Raw extends AbstractResult { diff --git a/lib/internal/Magento/Framework/Data/FormFactory.php b/lib/internal/Magento/Framework/Data/FormFactory.php index ce8d39aa1f23a..eaf98903e64bb 100644 --- a/lib/internal/Magento/Framework/Data/FormFactory.php +++ b/lib/internal/Magento/Framework/Data/FormFactory.php @@ -8,6 +8,8 @@ /** * Form factory class + * + * @api */ class FormFactory { diff --git a/lib/internal/Magento/Framework/DataObject/Factory.php b/lib/internal/Magento/Framework/DataObject/Factory.php index 2fd16b7159c4f..3572710bb89af 100644 --- a/lib/internal/Magento/Framework/DataObject/Factory.php +++ b/lib/internal/Magento/Framework/DataObject/Factory.php @@ -5,6 +5,11 @@ */ namespace Magento\Framework\DataObject; +/** + * Class Factory + * + * @api + */ class Factory { /** diff --git a/lib/internal/Magento/Framework/DataObject/IdentityInterface.php b/lib/internal/Magento/Framework/DataObject/IdentityInterface.php index 42bc9c570b128..12637043a0644 100644 --- a/lib/internal/Magento/Framework/DataObject/IdentityInterface.php +++ b/lib/internal/Magento/Framework/DataObject/IdentityInterface.php @@ -9,6 +9,8 @@ * Interface for * 1. models which require cache refresh when it is created/updated/deleted * 2. blocks which render this information to front-end + * + * @api */ interface IdentityInterface { diff --git a/lib/internal/Magento/Framework/Event/ManagerInterface.php b/lib/internal/Magento/Framework/Event/ManagerInterface.php index 20d01c6a0f099..ce1a70b2148b8 100644 --- a/lib/internal/Magento/Framework/Event/ManagerInterface.php +++ b/lib/internal/Magento/Framework/Event/ManagerInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Framework\Event\ManagerInterface * + * @api */ interface ManagerInterface { diff --git a/lib/internal/Magento/Framework/Filesystem/DirectoryList.php b/lib/internal/Magento/Framework/Filesystem/DirectoryList.php index b3ab51b948109..6cdcf3f62ebbb 100644 --- a/lib/internal/Magento/Framework/Filesystem/DirectoryList.php +++ b/lib/internal/Magento/Framework/Filesystem/DirectoryList.php @@ -21,6 +21,8 @@ * This object is intended to be immutable (a "value object"). * The defaults are pre-defined and can be modified only by inheritors of this class. * Through the constructor, it is possible to inject custom paths or URL paths, but impossible to inject new types. + * + * @api */ class DirectoryList { diff --git a/lib/internal/Magento/Framework/Logger/Handler/Base.php b/lib/internal/Magento/Framework/Logger/Handler/Base.php index 07dfd3f0963ab..202a4f704d029 100644 --- a/lib/internal/Magento/Framework/Logger/Handler/Base.php +++ b/lib/internal/Magento/Framework/Logger/Handler/Base.php @@ -13,6 +13,8 @@ /** * Base stream handler + * + * @api */ class Base extends StreamHandler { diff --git a/lib/internal/Magento/Framework/View/Element/Html/Select.php b/lib/internal/Magento/Framework/View/Element/Html/Select.php index 09b5d7f2e821c..79073babbe0c9 100644 --- a/lib/internal/Magento/Framework/View/Element/Html/Select.php +++ b/lib/internal/Magento/Framework/View/Element/Html/Select.php @@ -7,6 +7,8 @@ /** * HTML select element block + * + * @api */ class Select extends \Magento\Framework\View\Element\AbstractBlock { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php index fca2abeb3ea45..78393e661d609 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php @@ -13,6 +13,8 @@ /** * Interface ContextInterface + * + * @api */ interface ContextInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php index df00c87db034d..eab6dbfae1122 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php @@ -7,6 +7,8 @@ /** * Interface ButtonProviderInterface + * + * @api */ interface ButtonProviderInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php index baa4e94eed978..f85f8b19a395d 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php @@ -14,6 +14,8 @@ /** * Class DataProvider + * + * @api */ class DataProvider implements DataProviderInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php index 32334e89c5876..69439ddbc9b1d 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php @@ -19,6 +19,7 @@ * Class SearchResult * Generic Search Result * @SuppressWarnings(PHPMD.CouplingBetweenObjects) + * @api */ class SearchResult extends AbstractCollection implements Api\Search\SearchResultInterface { diff --git a/lib/internal/Magento/Framework/View/LayoutFactory.php b/lib/internal/Magento/Framework/View/LayoutFactory.php index b33a97cfaad80..f2694684363bf 100644 --- a/lib/internal/Magento/Framework/View/LayoutFactory.php +++ b/lib/internal/Magento/Framework/View/LayoutFactory.php @@ -7,6 +7,8 @@ /** * Factory class for Layout + * + * @api */ class LayoutFactory { From 3357698831beab953c62aa0128a5162c8e384ef5 Mon Sep 17 00:00:00 2001 From: Vitaliy Prokopoov Date: Wed, 3 Mar 2021 14:56:32 +0200 Subject: [PATCH 2/5] Marked related class as a[i --- .../Magento/Framework/App/Request/InvalidRequestException.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/internal/Magento/Framework/App/Request/InvalidRequestException.php b/lib/internal/Magento/Framework/App/Request/InvalidRequestException.php index e15a5151942f0..1f7b959a37eba 100644 --- a/lib/internal/Magento/Framework/App/Request/InvalidRequestException.php +++ b/lib/internal/Magento/Framework/App/Request/InvalidRequestException.php @@ -16,6 +16,8 @@ /** * Received request is invalid. + * + * @api */ class InvalidRequestException extends RuntimeException { From 56604cfbc7283fb1fef6100340465f714a32fb13 Mon Sep 17 00:00:00 2001 From: Vitaliy Prokopoov Date: Tue, 9 Mar 2021 09:42:02 +0200 Subject: [PATCH 3/5] Removed old annotation --- app/code/Magento/Widget/Block/BlockInterface.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/code/Magento/Widget/Block/BlockInterface.php b/app/code/Magento/Widget/Block/BlockInterface.php index e73bf2bef052f..7646fbcffafe3 100644 --- a/app/code/Magento/Widget/Block/BlockInterface.php +++ b/app/code/Magento/Widget/Block/BlockInterface.php @@ -7,7 +7,6 @@ /** * Widget Block Interface * - * @author Magento Core Team * @api */ namespace Magento\Widget\Block; From df71acc7041bd6106a1f8b74b781478ac16a8230 Mon Sep 17 00:00:00 2001 From: Vitaliy Prokopoov Date: Tue, 9 Mar 2021 09:44:05 +0200 Subject: [PATCH 4/5] Reverted changes for http get action --- .../Magento/Framework/App/Action/HttpGetActionInterface.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php index 8604758cae0d7..f9a07b927ddd9 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php @@ -8,14 +8,12 @@ namespace Magento\Framework\App\Action; -use Magento\Framework\App\ActionInterface; - /** * Marker for actions processing GET requests. * * @api */ -interface HttpGetActionInterface extends ActionInterface +interface HttpGetActionInterface extends HttpHeadActionInterface { } From 22f31068c6e10214ff7a00a4b109f31d4313a3ef Mon Sep 17 00:00:00 2001 From: Vitaliy Prokopoov Date: Mon, 15 Mar 2021 09:24:16 +0200 Subject: [PATCH 5/5] added strict types for classes --- app/code/Magento/Customer/Controller/RegistryConstants.php | 2 ++ app/code/Magento/Customer/Model/Context.php | 2 ++ .../Sales/Model/ResourceModel/Order/Collection/Factory.php | 2 ++ app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php | 2 ++ app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php | 2 ++ app/code/Magento/Widget/Block/BlockInterface.php | 1 + lib/internal/Magento/Framework/Api/AbstractSimpleObject.php | 2 ++ lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php | 2 ++ lib/internal/Magento/Framework/App/Http/Context.php | 2 ++ .../Magento/Framework/App/Response/RedirectInterface.php | 2 ++ .../Magento/Framework/Controller/Result/JsonFactory.php | 1 + lib/internal/Magento/Framework/Controller/Result/Raw.php | 1 + lib/internal/Magento/Framework/Data/FormFactory.php | 1 + lib/internal/Magento/Framework/DataObject/Factory.php | 2 ++ lib/internal/Magento/Framework/DataObject/IdentityInterface.php | 2 ++ lib/internal/Magento/Framework/Event/ManagerInterface.php | 2 ++ lib/internal/Magento/Framework/Filesystem/DirectoryList.php | 1 + lib/internal/Magento/Framework/Logger/Handler/Base.php | 1 + lib/internal/Magento/Framework/View/Element/Html/Select.php | 2 ++ .../Framework/View/Element/UiComponent/ContextInterface.php | 2 ++ .../Element/UiComponent/Control/ButtonProviderInterface.php | 2 ++ .../View/Element/UiComponent/DataProvider/DataProvider.php | 2 ++ .../View/Element/UiComponent/DataProvider/SearchResult.php | 1 + lib/internal/Magento/Framework/View/LayoutFactory.php | 2 ++ 24 files changed, 41 insertions(+) diff --git a/app/code/Magento/Customer/Controller/RegistryConstants.php b/app/code/Magento/Customer/Controller/RegistryConstants.php index f67ad656004e3..b89c2d003160d 100644 --- a/app/code/Magento/Customer/Controller/RegistryConstants.php +++ b/app/code/Magento/Customer/Controller/RegistryConstants.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Customer\Controller; /** diff --git a/app/code/Magento/Customer/Model/Context.php b/app/code/Magento/Customer/Model/Context.php index 8ea889be7227d..7b82a3dd98d31 100644 --- a/app/code/Magento/Customer/Model/Context.php +++ b/app/code/Magento/Customer/Model/Context.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Customer\Model; /** diff --git a/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php b/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php index 7bd61f4dec404..da7ea8ca18bfa 100644 --- a/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php +++ b/app/code/Magento/Sales/Model/ResourceModel/Order/Collection/Factory.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Sales\Model\ResourceModel\Order\Collection; /** diff --git a/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php b/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php index 01e231a7c8b71..7fc49dd3f9b91 100644 --- a/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php +++ b/app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Shipping\Model\Carrier; /** diff --git a/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php b/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php index bf977d33ad7e8..0eeab9a8204ce 100644 --- a/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php +++ b/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Ui\Component\Layout\Tabs; /** diff --git a/app/code/Magento/Widget/Block/BlockInterface.php b/app/code/Magento/Widget/Block/BlockInterface.php index 7646fbcffafe3..556d445bbcdb8 100644 --- a/app/code/Magento/Widget/Block/BlockInterface.php +++ b/app/code/Magento/Widget/Block/BlockInterface.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); /** * Widget Block Interface diff --git a/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php b/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php index 7483b1fec58c2..59a01f6f99e13 100644 --- a/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php +++ b/lib/internal/Magento/Framework/Api/AbstractSimpleObject.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Api; /** diff --git a/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php b/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php index 95b649d4a22f6..423719c87c4b6 100644 --- a/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php +++ b/lib/internal/Magento/Framework/App/Filesystem/DirectoryList.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\App\Filesystem; use Magento\Framework\Code\Generator\Io; diff --git a/lib/internal/Magento/Framework/App/Http/Context.php b/lib/internal/Magento/Framework/App/Http/Context.php index c2993444ee5ed..b3fa5a5cca67b 100644 --- a/lib/internal/Magento/Framework/App/Http/Context.php +++ b/lib/internal/Magento/Framework/App/Http/Context.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\App\Http; use Magento\Framework\App\ObjectManager; diff --git a/lib/internal/Magento/Framework/App/Response/RedirectInterface.php b/lib/internal/Magento/Framework/App/Response/RedirectInterface.php index 085e2cc1cf860..1f7dc56387351 100644 --- a/lib/internal/Magento/Framework/App/Response/RedirectInterface.php +++ b/lib/internal/Magento/Framework/App/Response/RedirectInterface.php @@ -5,6 +5,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\App\Response; /** diff --git a/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php b/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php index 1d315df8babdd..cc54ec44b754c 100644 --- a/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php +++ b/lib/internal/Magento/Framework/Controller/Result/JsonFactory.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Controller\Result; diff --git a/lib/internal/Magento/Framework/Controller/Result/Raw.php b/lib/internal/Magento/Framework/Controller/Result/Raw.php index b4a8d7970ed6a..6ccea7b2d0c4f 100644 --- a/lib/internal/Magento/Framework/Controller/Result/Raw.php +++ b/lib/internal/Magento/Framework/Controller/Result/Raw.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Controller\Result; diff --git a/lib/internal/Magento/Framework/Data/FormFactory.php b/lib/internal/Magento/Framework/Data/FormFactory.php index eaf98903e64bb..077c23875d4ac 100644 --- a/lib/internal/Magento/Framework/Data/FormFactory.php +++ b/lib/internal/Magento/Framework/Data/FormFactory.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Data; diff --git a/lib/internal/Magento/Framework/DataObject/Factory.php b/lib/internal/Magento/Framework/DataObject/Factory.php index 3572710bb89af..6f26433452f89 100644 --- a/lib/internal/Magento/Framework/DataObject/Factory.php +++ b/lib/internal/Magento/Framework/DataObject/Factory.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\DataObject; /** diff --git a/lib/internal/Magento/Framework/DataObject/IdentityInterface.php b/lib/internal/Magento/Framework/DataObject/IdentityInterface.php index 12637043a0644..51f378ea1a3c2 100644 --- a/lib/internal/Magento/Framework/DataObject/IdentityInterface.php +++ b/lib/internal/Magento/Framework/DataObject/IdentityInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\DataObject; /** diff --git a/lib/internal/Magento/Framework/Event/ManagerInterface.php b/lib/internal/Magento/Framework/Event/ManagerInterface.php index ce1a70b2148b8..41b3c70549034 100644 --- a/lib/internal/Magento/Framework/Event/ManagerInterface.php +++ b/lib/internal/Magento/Framework/Event/ManagerInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Event; /** diff --git a/lib/internal/Magento/Framework/Filesystem/DirectoryList.php b/lib/internal/Magento/Framework/Filesystem/DirectoryList.php index 6cdcf3f62ebbb..7d74c2f127095 100644 --- a/lib/internal/Magento/Framework/Filesystem/DirectoryList.php +++ b/lib/internal/Magento/Framework/Filesystem/DirectoryList.php @@ -8,6 +8,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Filesystem; diff --git a/lib/internal/Magento/Framework/Logger/Handler/Base.php b/lib/internal/Magento/Framework/Logger/Handler/Base.php index 202a4f704d029..af385bd6650ed 100644 --- a/lib/internal/Magento/Framework/Logger/Handler/Base.php +++ b/lib/internal/Magento/Framework/Logger/Handler/Base.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Logger\Handler; diff --git a/lib/internal/Magento/Framework/View/Element/Html/Select.php b/lib/internal/Magento/Framework/View/Element/Html/Select.php index 79073babbe0c9..723cad9a8b226 100644 --- a/lib/internal/Magento/Framework/View/Element/Html/Select.php +++ b/lib/internal/Magento/Framework/View/Element/Html/Select.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Element\Html; /** diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php index 78393e661d609..48d6dee29aa24 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Element\UiComponent; use Magento\Framework\View\Element\UiComponentInterface; diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php index eab6dbfae1122..00395b83082ce 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Element\UiComponent\Control; /** diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php index f85f8b19a395d..fba50ad2c0b7b 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/DataProvider.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Element\UiComponent\DataProvider; use Magento\Framework\Api\FilterBuilder; diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php index 69439ddbc9b1d..623d33a78ee9d 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/SearchResult.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\View\Element\UiComponent\DataProvider; diff --git a/lib/internal/Magento/Framework/View/LayoutFactory.php b/lib/internal/Magento/Framework/View/LayoutFactory.php index f2694684363bf..9ad8fc7f98b16 100644 --- a/lib/internal/Magento/Framework/View/LayoutFactory.php +++ b/lib/internal/Magento/Framework/View/LayoutFactory.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View; /**