Skip to content

Commit 856258f

Browse files
authored
Merge pull request #2 from run-as-root/feature/php-8.1-compatibility-check
Added tool for php 8.1 compatibility check
2 parents 96e0e94 + 950451c commit 856258f

File tree

3 files changed

+12
-25
lines changed

3 files changed

+12
-25
lines changed

component/README.md

Lines changed: 0 additions & 11 deletions
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-
send_questions_to: vpodorozh@gmail.com | vlad.podorozhnyi@run-as-root.sh
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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@
44
"type": "magento2-component",
55
"license": "MIT",
66
"require": {
7+
"php": "^7.4 | ^8",
78
"magento/framework": ">=102.0.7"
89
},
910
"require-dev": {
10-
"roave/security-advisories": "dev-latest"
11+
"roave/security-advisories": "dev-latest",
12+
"squizlabs/php_codesniffer": "^3.7",
13+
"phpcompatibility/php-compatibility": "^9.3"
1114
},
1215
"repositories": [
1316
{
1417
"type": "composer",
1518
"url": "https://mirror.mage-os.org/",
16-
"only": ["magento/*"]
19+
"only": [
20+
"magento/*"
21+
]
1722
}
1823
],
1924
"autoload": {
@@ -33,5 +38,10 @@
3338
"allow-plugins": {
3439
"magento/composer-dependency-version-audit-plugin": false
3540
}
41+
},
42+
"scripts": {
43+
"sniffer:php7.4": "phpcs -p ./lib --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4",
44+
"sniffer:php8.0": "phpcs -p ./lib --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0",
45+
"sniffer:php8.1": "phpcs -p ./lib --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1"
3646
}
3747
}

lib/README.md

Lines changed: 0 additions & 12 deletions
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-
send_questions_to: vpodorozh@gmail.com | vlad.podorozhnyi@run-as-root.sh
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)