Skip to content

Commit 235f470

Browse files
committed
Merge branch 'develop' of https://github.com/magento-commerce/magento2-page-builder into PR-12-05-2024
2 parents f9452dc + 7c27e93 commit 235f470

File tree

26 files changed

+97
-98
lines changed

26 files changed

+97
-98
lines changed

app/code/Magento/AwsS3PageBuilder/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Aws S3 Page Builder module",
44
"require": {
55
"magento/framework": "*",
6-
"php": "~8.2.0||~8.3.0"
6+
"php": "~8.2.0||~8.3.0||~8.4.0"
77
},
88
"suggest": {
99
"magento/module-page-builder": "*",

app/code/Magento/CatalogPageBuilderAnalytics/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"magento/module-page-builder-analytics": "*",
99
"magento/module-catalog": "*",
1010
"magento/framework": "*",
11-
"php": "~8.2.0||~8.3.0"
11+
"php": "~8.2.0||~8.3.0||~8.4.0"
1212
},
1313
"type": "magento2-module",
1414
"license": [

app/code/Magento/CmsPageBuilderAnalytics/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"magento/module-page-builder-analytics": "*",
99
"magento/module-cms": "*",
1010
"magento/framework": "*",
11-
"php": "~8.2.0||~8.3.0"
11+
"php": "~8.2.0||~8.3.0||~8.4.0"
1212
},
1313
"type": "magento2-module",
1414
"license": [

app/code/Magento/PageBuilder/Block/Adminhtml/Stage/Render.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2019 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -15,11 +15,6 @@
1515
use Magento\PageBuilder\Model\Stage\Config;
1616
use Magento\Framework\Serialize\Serializer\Json;
1717

18-
/**
19-
* Class Render
20-
*
21-
* @api
22-
*/
2318
class Render extends Template
2419
{
2520
/**
@@ -56,7 +51,7 @@ public function __construct(
5651
Config $config,
5752
Json $json,
5853
array $data = [],
59-
Minification $minification = null
54+
?Minification $minification = null
6055
) {
6156
parent::__construct($context, $data);
6257
$this->fileManager = $fileManager;

app/code/Magento/PageBuilder/Block/WysiwygSetup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2018 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -49,7 +49,7 @@ public function __construct(
4949
Context $context,
5050
ConfigInterface $config,
5151
array $data = [],
52-
FrontendInterface $cache = null,
52+
?FrontendInterface $cache = null,
5353
?RandomKey $sessionRandomKey = null
5454
) {
5555
$this->config = $config;

app/code/Magento/PageBuilder/Component/Form/Element/Wysiwyg.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -70,10 +70,10 @@ public function __construct(
7070
array $components = [],
7171
array $data = [],
7272
array $config = [],
73-
PageBuilderConfig $pageBuilderConfig = null,
73+
?PageBuilderConfig $pageBuilderConfig = null,
7474
bool $overrideSnapshot = false,
75-
Repository $assetRepo = null,
76-
AuthorizationInterface $authorization = null
75+
?Repository $assetRepo = null,
76+
?AuthorizationInterface $authorization = null
7777
) {
7878
$this->assetRepo = $assetRepo ?: ObjectManager::getInstance()->get(Repository::class);
7979
$this->authorization = $authorization ?: ObjectManager::getInstance()->get(AuthorizationInterface::class);

app/code/Magento/PageBuilder/Component/Form/HtmlCode.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2019 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\PageBuilder\Component\Form;
@@ -19,7 +19,7 @@
1919
*/
2020
class HtmlCode extends \Magento\Ui\Component\Form\Field
2121
{
22-
const HTML_ID_PLACEHOLDER = 'HTML_ID_PLACEHOLDER';
22+
public const HTML_ID_PLACEHOLDER = 'HTML_ID_PLACEHOLDER';
2323

2424
/**
2525
* @var BackendUrlInterface
@@ -63,7 +63,7 @@ public function __construct(
6363
BackendUrlInterface $backendUrl,
6464
Images $imagesHelper,
6565
VariableConfig $variableConfig,
66-
OpenDialogUrl $openDialogUrl = null,
66+
?OpenDialogUrl $openDialogUrl = null,
6767
$currentTreePath = 'wysiwyg',
6868
$components = [],
6969
array $data = []

app/code/Magento/PageBuilder/Controller/Adminhtml/ContentType/Image/Upload.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\PageBuilder\Controller\Adminhtml\ContentType\Image;
77

@@ -17,9 +17,9 @@
1717
*/
1818
class Upload extends \Magento\Backend\App\Action implements HttpPostActionInterface
1919
{
20-
const UPLOAD_DIR = 'wysiwyg';
20+
public const UPLOAD_DIR = 'wysiwyg';
2121

22-
const ADMIN_RESOURCE = 'Magento_Backend::content';
22+
public const ADMIN_RESOURCE = 'Magento_Backend::content';
2323

2424
/**
2525
* @var \Magento\Framework\Filesystem\DirectoryList
@@ -71,7 +71,7 @@ public function __construct(
7171
\Magento\Framework\File\UploaderFactory $uploaderFactory,
7272
\Magento\Framework\Filesystem\DirectoryList $directoryList,
7373
\Magento\Cms\Helper\Wysiwyg\Images $cmsWysiwygImages,
74-
Filesystem $filesystem = null
74+
?Filesystem $filesystem = null
7575
) {
7676
parent::__construct($context);
7777
$this->resultJsonFactory = $resultJsonFactory;

app/code/Magento/PageBuilder/Controller/ContentType/Preview.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -20,6 +20,7 @@
2020
* @deprecated use \Magento\PageBuilder\Controller\Adminhtml\Stage\Preview
2121
*
2222
* @api
23+
* @see MC-16152
2324
*/
2425
class Preview extends \Magento\Framework\App\Action\Action implements HttpPostActionInterface
2526
{
@@ -43,7 +44,7 @@ class Preview extends \Magento\Framework\App\Action\Action implements HttpPostAc
4344
public function __construct(
4445
\Magento\Backend\App\Action\Context $context,
4546
\Magento\PageBuilder\Model\Stage\RendererPool $rendererPool,
46-
\Magento\Backend\Model\Auth $auth = null
47+
?\Magento\Backend\Model\Auth $auth = null
4748
) {
4849
parent::__construct($context);
4950

@@ -70,7 +71,7 @@ public function execute()
7071

7172
return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData($result);
7273
}
73-
74+
// @phpstan-ignore-next-line
7475
$this->_forward('noroute');
7576
}
7677
}

app/code/Magento/PageBuilder/Model/Catalog/Sorting/SimpleOption.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2019 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -43,9 +43,9 @@ class SimpleOption implements OptionInterface
4343
*/
4444
public function __construct(
4545
string $label,
46-
string $sortDirection = null,
47-
string $attributeField = null,
48-
string $secondarySortDirection = null
46+
?string $sortDirection = null,
47+
?string $attributeField = null,
48+
?string $secondarySortDirection = null
4949
) {
5050
$this->label = $label;
5151
$this->sortDirection = $sortDirection;

0 commit comments

Comments
 (0)