Skip to content

32054 api changes #33221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/code/Magento/Customer/Controller/RegistryConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Customer\Controller;

/**
* Declarations of core registry keys used by the Customer module
*
* @api
*/
class RegistryConstants
{
Expand Down
7 changes: 7 additions & 0 deletions app/code/Magento/Customer/Model/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Customer\Model;

/**
* Class Context
*
* @api
*/
class Context
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Sales\Model\ResourceModel\Order\Collection;

/**
* Class Factory
*
* @api
*/
class Factory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class CollectionFactory
*
* @api
*/
class CollectionFactory implements CollectionFactoryInterface
{
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Shipping\Model\Carrier;

/**
* Interface \Magento\Shipping\Model\Carrier\CarrierInterface
*
* @api
*/
interface CarrierInterface
{
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Widget/Block/BlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

/**
* Widget Block Interface
*
* @author Magento Core Team <[email protected]>
* @api
*/
namespace Magento\Widget\Block;

Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/Api/AbstractSimpleObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Api;

/**
* Base Class for simple data Objects
* @SuppressWarnings(PHPMD.NumberOfChildren)
*
* @api
*/
abstract class AbstractSimpleObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
* 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;

/**
* A Magento application specific list of directories
*
* @api
*/
class DirectoryList extends \Magento\Framework\Filesystem\DirectoryList
{
Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/App/Http/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
* 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;
use Magento\Framework\Serialize\Serializer\Json;

/**
* Context data for requests
*
* @api
*/
class Context
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Class FileFactory serves to declare file content in response for download.
*
* @api
*/
class FileFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Controller/Result/Raw.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -12,6 +13,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
{
Expand Down
1 change: 1 addition & 0 deletions lib/internal/Magento/Framework/Data/FormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Data;

Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Filesystem/DirectoryList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Filesystem;

Expand All @@ -21,6 +22,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
{
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Logger/Handler/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -13,6 +14,8 @@

/**
* Base stream handler
*
* @api
*/
class Base extends StreamHandler
{
Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/View/Element/Html/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\View\Element\Html;

/**
* HTML select element block
*
* @api
*/
class Select extends \Magento\Framework\View\Element\AbstractBlock
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -14,6 +16,8 @@

/**
* Class DataProvider
*
* @api
*/
class DataProvider implements DataProviderInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -19,6 +20,7 @@
* Class SearchResult
* Generic Search Result
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @api
*/
class SearchResult extends AbstractCollection implements Api\Search\SearchResultInterface
{
Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/View/LayoutFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\View;

/**
* Factory class for Layout
*
* @api
*/
class LayoutFactory
{
Expand Down