Skip to content

Commit f46d3eb

Browse files
authored
fix(php-8.2): improve the default config path for other os
* fix: added support for `php8.2+` * chore: CHANGELOG.md and composer dependency upgrade * fix: removed changelog since, it will be autogenerated! * fix: Added global value to support other OS.
1 parent 054765f commit f46d3eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"email": "[email protected]"
2828
},
2929
"require": {
30-
"php": ">=7.1|^8.0|^8.1",
30+
"php": ">=7.1|^8.0|^8.1|^8.2",
3131
"guzzlehttp/guzzle": "^6.5.5|^7.0.1"
3232
},
3333
"require-dev": {

src/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Config
1616
*/
1717
public function __construct(array $items = null, string $base_config_path = null)
1818
{
19-
$this->items = require($base_config_path ?: __DIR__ . "./../config/msg91.php");
19+
$this->items = require($base_config_path ?: __DIR__ . DIRECTORY_SEPARATOR . join(DIRECTORY_SEPARATOR, array('..', 'config', 'msg91.php')));
2020
$this->mergeWith($items);
2121
}
2222

0 commit comments

Comments
 (0)