Skip to content

Commit 02d73f4

Browse files
committed
Merge remote-tracking branch 'origin/php8-develop' into 31341-update-elasticsearch
2 parents a8abbca + cb0635a commit 02d73f4

File tree

38 files changed

+78
-41
lines changed

38 files changed

+78
-41
lines changed

app/code/Magento/Backend/view/adminhtml/templates/media/uploader.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Backend\Block\Media\Uploader */
89
?>
910

app/code/Magento/Backend/view/adminhtml/templates/system/search.phtml

+10-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/** @var $block \Magento\Backend\Block\GlobalSearch */
7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
8+
9+
use Magento\Backend\Block\GlobalSearch;
10+
use Magento\Framework\Json\Helper\Data;
11+
12+
/** @var $block GlobalSearch */
13+
/** @var Data $helper */
14+
$helper = $this->helper(Data::class);
15+
816
?>
917
<div class="search-global" data-mage-init='{"globalSearch": {}}'>
1018
<form action="#" id="form-search">
@@ -15,9 +23,7 @@
1523
class="search-global-input"
1624
id="search-global"
1725
name="query"
18-
<?php //phpcs:disable ?>
19-
data-mage-init='<?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getWidgetInitOptions()) ?>'>
20-
<?php //phpcs:enable ?>
26+
data-mage-init='<?= /* @noEscape */ $helper->jsonEncode($block->getWidgetInitOptions()) ?>'>
2127
<button
2228
type="submit"
2329
class="search-global-action"

app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle\Option */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
?>

app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option/selection.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle\Option\Selection */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
?>

app/code/Magento/Bundle/view/frontend/templates/catalog/product/view/summary.phtml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
?>
76

8-
<?php
9-
$_product = $block->getProduct();
7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
8+
$_product = $block->getProduct();
109
?>
1110
<?php if ($_product->isSaleable() && $block->hasOptions()) : ?>
1211
<div id="bundleSummary"

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/options.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options */
89

910
$stores = $block->getStoresSortedBySortOrder();

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit/attribute_set.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
8+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
89

910
/* @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\AttributeSet */
1011
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit/options/option.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
8+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
89

910
/** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Option */
1011
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit/options/type/date.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
?>
89
<?php /** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Type\Date */ ?>
910
<script id="custom-option-date-type-template" type="text/x-magento-template">

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit/options/type/file.phtml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
8+
/** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Type\File */
79
?>
8-
<?php /** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Type\File */ ?>
910
<script id="custom-option-file-type-template" type="text/x-magento-template">
1011
<div id="product_option_<%- data.option_id %>_type_<%- data.group %>" class="fieldset">
1112
<table class="data-table">

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit/options/type/select.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
?>
89
<?php /** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Type\Select */ ?>
910
<script id="custom-option-select-type-template" type="text/x-magento-template">

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit/options/type/text.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
?>
89
<?php /** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Type\Text */ ?>
910
<script id="custom-option-text-type-template" type="text/x-magento-template">

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/helper/gallery.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Gallery\Content */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
$elementName = $block->getElement()->getName() . '[images]';

app/code/Magento/Catalog/view/adminhtml/templates/product/edit/attribute/search.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Attributes\Search */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
?>

app/code/Magento/Cms/view/adminhtml/templates/browser/content/uploader.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Uploader */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/edit/attribute/steps/bulk.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/* @var $block \Magento\ConfigurableProduct\Block\Adminhtml\Product\Steps\Bulk */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
?>

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/edit/super/matrix.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\ConfigurableProduct\Block\Adminhtml\Product\Edit\Tab\Variations\Config\Matrix */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
?>

app/code/Magento/ConfigurableProduct/view/base/templates/product/price/tier_price.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
67
?>
78
<script type="text/x-magento-template" id="tier-prices-template">
89
<ul class="prices-tier items">

app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
// @deprecated
8+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
89
?>
910

1011
<?php

app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable/links.phtml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
*/
66

77
// @deprecated
8-
?>
9-
<?php
8+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
109

1110
/**
1211
* @var $block \Magento\Downloadable\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable\Links

app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable/samples.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66

77
// @deprecated
8-
?>
9-
<?php
8+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
9+
1010
/**
1111
* @var $block \Magento\Downloadable\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable\Links
1212
*/

app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/list.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/* @var $block \Magento\GroupedProduct\Block\Product\Grouped\AssociatedProducts\ListAssociatedProducts */
89
?>
910
<script type="text/x-magento-template" id="group-product-template">

app/code/Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/**
89
* @var $block \Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Gallery\Content
910
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer

app/code/Magento/ProductVideo/view/adminhtml/templates/product/edit/base_image.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
89
?>
910
<div class="row">

app/code/Magento/SendFriend/view/frontend/templates/send.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @var \Magento\SendFriend\Block\Send $block
1212
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
1313
*/
14+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
1415

1516
?>
1617
<script id="add-recipient-tmpl" type="text/x-magento-template">

app/code/Magento/Shipping/view/adminhtml/templates/order/tracking.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
?>
7-
<?php
6+
7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
88
/**
99
* @var $block Magento\Shipping\Block\Adminhtml\Order\Tracking
1010
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer

app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/text.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Text */
89

910
$stores = $block->getStoresSortedBySortOrder();

app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual */
89

910
$stores = $block->getStoresSortedBySortOrder();

app/code/Magento/Theme/view/adminhtml/templates/browser/content/uploader.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var $block \Magento\Theme\Block\Adminhtml\Wysiwyg\Files\Content\Uploader */
89
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
910
?>

app/code/Magento/Theme/view/adminhtml/templates/tabs/fieldset/js.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/**
89
* @var $block \Magento\Backend\Block\Widget\Form\Renderer\Fieldset
910
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer

app/code/Magento/Translation/view/adminhtml/templates/translate_inline.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/**
89
* @var \Magento\Framework\View\Element\Template $block
910
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer

app/code/Magento/Translation/view/frontend/templates/translate_inline.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var \Magento\Framework\View\Element\Template $block */
89
?>
910
<link rel="stylesheet" type="text/css" href="<?= $block->escapeUrl($block->getViewFileUrl('prototype/windows/themes/default.css')) ?>"/>

app/code/Magento/Weee/view/adminhtml/templates/renderer/tax.phtml

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
?>
8-
<?php
7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
98
/**
109
* @var $block \Magento\Weee\Block\Renderer\Weee\Tax
1110
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer

app/code/Magento/Wishlist/view/frontend/templates/view.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
78
/** @var \Magento\Wishlist\Block\Customer\Wishlist $block */
89
?>
910

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"pdepend/pdepend": "~2.7.1",
9595
"phpcompatibility/php-compatibility": "^9.3",
9696
"phpmd/phpmd": "^2.8.0",
97-
"phpstan/phpstan": "^0.12.3",
97+
"phpstan/phpstan": "^0.12.77",
9898
"phpunit/phpunit": "^9",
9999
"sebastian/phpcpd": "~5.0.0",
100100
"squizlabs/php_codesniffer": "~3.5.4"

composer.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)