Skip to content

Commit ec2557b

Browse files
committed
Merge branch 'main' into ddev-localdev
# Conflicts: # composer.lock
2 parents 5d27e83 + 4e73e60 commit ec2557b

File tree

1,983 files changed

+1270
-118878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,983 files changed

+1270
-118878
lines changed

.ddev/commands/web/magerun

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Example: "ddev magerun"
66

77
if [ ! -f vendor/bin/n98-magerun ]; then
8-
read -r -p "n98-magerun is not installed. Do you want to install it? [y/N] " INSTALL_MAGE
8+
read -r -p "n98-magerun is not installed. Do you want to install it? [y/N] " INSTALL_MAGERUN
99
INSTALL_MAGERUN=${INSTALL_MAGERUN,,} # to lower
1010
if [[ "${INSTALL_MAGERUN}" =~ ^(yes|y) ]]; then
1111
composer require --dev n98/magerun:dev-develop

.ddev/commands/web/openmage-admin

100644100755
File mode changed.

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@
887887
'phpstan':
888888
- changed-files:
889889
- any-glob-to-any-file: [
890+
.phpstan*,
890891
phpstan*,
891892
.github/workflows/phpstan.yml
892893
]

.github/workflows/check-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Get changed files
7777
id: changed-files-specific
78-
uses: tj-actions/changed-files@v44
78+
uses: tj-actions/changed-files@v45
7979
with:
8080
files: |
8181
composer.*

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,8 @@ name: "CodeQL"
1313

1414
on:
1515
workflow_call:
16+
# Allow manually triggering the workflow.
1617
workflow_dispatch:
17-
push:
18-
branches: [ "main", "next", "v19" ]
19-
pull_request:
20-
# The branches below must be a subset of the branches above
21-
branches: [ "main", "next", "v19" ]
22-
paths-ignore:
23-
- '**/*.md'
24-
- '**/*.txt'
2518

2619
jobs:
2720
analyze:

.github/workflows/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
name: Labeler
99
on:
1010
pull_request_target:
11+
# Allow manually triggering the workflow.
12+
workflow_dispatch:
1113

1214
jobs:
1315
triage:

.github/workflows/phpcs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545

4646
- name: PHPCodeSniffer
4747
run: php vendor/bin/phpcs -s --report=full --standard=${{ matrix.rules.path }}
48-
continue-on-error: ${{ matrix.rules.path != '.phpcs.xml.dist' }}
48+
continue-on-error: ${{ matrix.rules.path == '.phpcs.ecg.xml.dist' }}

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
/dev/openmage/docker-magento
4141
/dev/openmage/.env
4242
/dev/openmage/Caddyfile
43-
/dev/tests/functional/generated
44-
/dev/tests/functional/vendor
4543

4644
/media/*
4745
!/media/.htaccess
@@ -72,8 +70,11 @@
7270
.phpcs*.xml
7371
!.phpcs*.xml.dist
7472

73+
# PhpStan
74+
.phpstan*.neon
7575
phpstan*.neon
76-
!phpstan.dist.*.neon
76+
!.phpstan.dist.neon
77+
!.phpstan.dist.*.neon
7778

7879
# dev scripts loaded via composer
7980
/shell/update-copyright.php

.php-cs-fixer.dist.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
*/
77
$config = new PhpCsFixer\Config();
88
return $config
9+
->setRiskyAllowed(true)
910
->setRules([
11+
// PHP arrays should be declared using the configured syntax.
12+
'array_syntax' => ['syntax' => 'short'],
1013
// There MUST be one blank line after the namespace declaration.
1114
'blank_line_after_namespace' => true,
1215
// Ensure there is no code on the same line as the PHP open tag and it is followed by a blank line.
@@ -17,6 +20,8 @@
1720
'class_definition' => true,
1821
// Remove extra spaces in a nullable typehint.
1922
'compact_nullable_typehint' => true,
23+
// Concatenation should be spaced according to configuration.
24+
'concat_space' => ['spacing' => 'one'],
2025
// The PHP constants `true`, `false`, and `null` MUST be written using the correct casing.
2126
'constant_case' => true,
2227
// Equal sign in declare statement should be surrounded by spaces or not following configuration.
@@ -33,6 +38,8 @@
3338
'indentation_type' => true,
3439
// All PHP files must use same line ending.
3540
'line_ending' => true,
41+
// Use && and || logical operators instead of and and or.
42+
'logical_operators' => true,
3643
// Cast should be written in lower case.
3744
'lowercase_cast' => true,
3845
// PHP keywords MUST be in lower case.
@@ -41,6 +48,8 @@
4148
'lowercase_static_reference' => true,
4249
// In method arguments and method call, there MUST NOT be a space before each comma and there MUST be one space after each comma. Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line.
4350
'method_argument_space' => true,
51+
// Replaces intval, floatval, doubleval, strval and boolval function calls with according type casting operator.
52+
'modernize_types_casting' => true,
4453
// All instances created with new keyword must be followed by braces.
4554
'new_with_braces' => true,
4655
// There should be no empty lines after class opening brace.
@@ -83,6 +92,8 @@
8392
'single_import_per_statement' => true,
8493
// Each namespace use MUST go on its own line and there MUST be one blank line after the use statements block.
8594
'single_line_after_imports' => true,
95+
// Convert double quotes to single quotes for simple strings.
96+
'single_quote' => true,
8697
// Each trait `use` must be done as single statement.
8798
'single_trait_insert_per_statement' => true,
8899
// A case should be followed by a colon and not a semicolon.

.phpcs.php.xml.dist

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,57 @@
1818
<exclude-pattern>*/Varien/Db/Tree.php*</exclude-pattern>
1919
<exclude-pattern>*/Varien/Directory/Collection.php*</exclude-pattern>
2020
</rule>
21+
<rule ref="PHPCompatibility.Constants.RemovedConstants.mcrypt_blowfishDeprecatedRemoved">
22+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
23+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
24+
</rule>
25+
<rule ref="PHPCompatibility.Constants.RemovedConstants.mcrypt_mode_cbcDeprecatedRemoved">
26+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
27+
</rule>
28+
<rule ref="PHPCompatibility.Constants.RemovedConstants.mcrypt_mode_ecbDeprecatedRemoved">
29+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
30+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
31+
</rule>
32+
<rule ref="PHPCompatibility.Constants.RemovedConstants.mcrypt_randDeprecatedRemoved">
33+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
34+
</rule>
35+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_create_ivDeprecatedRemoved">
36+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
37+
</rule>
38+
<rule ref="PHPCompatibility.Extensions.RemovedExtensions.mcryptDeprecatedRemoved">
39+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
40+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
41+
</rule>
42+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_enc_get_iv_sizeDeprecatedRemoved">
43+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
44+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
45+
</rule>
46+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_enc_get_key_sizeDeprecatedRemoved">
47+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
48+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
49+
</rule>
50+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_genericDeprecatedRemoved">
51+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
52+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
53+
</rule>
54+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_generic_deinitDeprecatedRemoved">
55+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
56+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
57+
</rule>
58+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_generic_initDeprecatedRemoved">
59+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
60+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
61+
</rule>
62+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_module_closeDeprecatedRemoved">
63+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
64+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
65+
</rule>
66+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_module_openDeprecatedRemoved">
67+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
68+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
69+
</rule>
70+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mdecrypt_genericDeprecatedRemoved">
71+
<exclude-pattern>*/Magento/Crypt.php*</exclude-pattern>
72+
<exclude-pattern>*/Varien/Crypt/Mcrypt.php*</exclude-pattern>
73+
</rule>
2174
</ruleset>

0 commit comments

Comments
 (0)