Skip to content

Commit 01ce229

Browse files
committed
Add support for PHP 8.2 and 8.3
1 parent 4fe56cc commit 01ce229

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Model/CorsCheck.php

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
*/
1414
class CorsCheck implements CorsCheckInterface
1515
{
16+
/**
17+
* @var \Magento\Framework\Webapi\Rest\Response $response
18+
*/
19+
private $response;
20+
21+
/**
22+
* @var \Magento\Framework\Webapi\Rest\Request $request
23+
*/
24+
private $request;
1625

1726
/**
1827
* Initialize dependencies.

Plugin/CorsRequestOptionsPlugin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CorsRequestOptionsPlugin
2222
* Allow Options requests from jQuery AJAX
2323
*
2424
* @param Request $subject
25-
* @return void
25+
* @return string
2626
* @throws InputException
2727
*/
2828
public function aroundGetHttpMethod(
@@ -34,4 +34,4 @@ public function aroundGetHttpMethod(
3434
return $subject->getMethod();
3535
}
3636

37-
}
37+
}

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Enabling cross-origin resource sharing (CORS) requests to Magento 2 API from configured Origin domain",
44
"homepage": "https://github.com/splashlab/magento-2-cors-requests",
55
"type": "magento2-module",
6-
"version": "100.0.7",
6+
"version": "100.0.8",
77
"license": [
88
"OSL-3.0",
99
"AFL-3.0"
@@ -13,8 +13,9 @@
1313
"source": "https://github.com/splashlab/magento-2-cors-requests"
1414
},
1515
"require": {
16-
"php": "~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0",
17-
"magento/framework": "*"
16+
"php": "~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0",
17+
"magento/framework": "*",
18+
"magento/module-webapi": "*"
1819
},
1920
"autoload": {
2021
"files": [

0 commit comments

Comments
 (0)