Skip to content

Commit eae3617

Browse files
committed
Added tool for php 8.1 compatibility check
1 parent 4aac0d8 commit eae3617

File tree

3 files changed

+12
-25
lines changed

3 files changed

+12
-25
lines changed

component/README.md

-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
---
2-
title: [component] CLI Constructor Arg Auto Proxy
3-
keywords: CLI, Proxy, ObjectManager
4-
author: Vlad Podorozhnyi
5-
6-
category: System
7-
---
8-
![Magento 2](https://img.shields.io/badge/Magento-2.4.*-orange)
9-
![composer](https://shields.io/badge/composer-v2-darkgreen)
10-
![packagist](https://img.shields.io/badge/packagist-f28d1a)
11-
121
## \[magento2-component\] Cli Constructor Arg Auto Proxy Component
132

143

composer.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@
33
"description": "Makes all Magento CLI commands construct dependencies be injected as Proxy.",
44
"type": "magento2-component",
55
"require": {
6+
"php": "^7.4 | ^8",
67
"magento/framework": "*"
78
},
89
"require-dev": {
9-
"roave/security-advisories": "dev-latest"
10+
"roave/security-advisories": "dev-latest",
11+
"squizlabs/php_codesniffer": "^3.7",
12+
"phpcompatibility/php-compatibility": "^9.3"
1013
},
1114
"repositories": [
1215
{
1316
"type": "composer",
1417
"url": "https://mirror.mage-os.org/",
15-
"only": ["magento/*"]
18+
"only": [
19+
"magento/*"
20+
]
1621
}
1722
],
1823
"autoload": {
@@ -32,5 +37,10 @@
3237
"allow-plugins": {
3338
"magento/composer-dependency-version-audit-plugin": false
3439
}
40+
},
41+
"scripts": {
42+
"sniffer:php7.4": "phpcs -p ./lib --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4",
43+
"sniffer:php8.0": "phpcs -p ./lib --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0",
44+
"sniffer:php8.1": "phpcs -p ./lib --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1"
3545
}
3646
}

lib/README.md

-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
---
2-
title: [library] CLI Constructor Arg Auto Proxy
3-
keywords: CLI, Proxy, ObjectManager
4-
author: Vlad Podorozhnyi
5-
6-
category: System
7-
---
8-
![Magento 2](https://img.shields.io/badge/Magento-2.4.*-orange)
9-
![PHP](https://img.shields.io/badge/php-7.4-blue)
10-
![composer](https://shields.io/badge/composer-v2-darkgreen)
11-
![packagist](https://img.shields.io/badge/packagist-f28d1a)
12-
131
## **\[library\] Cli Constructor Arg Auto Proxy**
142

153
## Features

0 commit comments

Comments
 (0)