Skip to content

Commit

Permalink
fix(php-8.2): improve the default config path for other os
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
anburocky3 authored Oct 17, 2024
1 parent 054765f commit f46d3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"email": "luckysud4@gmail.com"
},
"require": {
"php": ">=7.1|^8.0|^8.1",
"php": ">=7.1|^8.0|^8.1|^8.2",
"guzzlehttp/guzzle": "^6.5.5|^7.0.1"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Config
*/
public function __construct(array $items = null, string $base_config_path = null)
{
$this->items = require($base_config_path ?: __DIR__ . "./../config/msg91.php");
$this->items = require($base_config_path ?: __DIR__ . DIRECTORY_SEPARATOR . join(DIRECTORY_SEPARATOR, array('..', 'config', 'msg91.php')));
$this->mergeWith($items);
}

Expand Down

0 comments on commit f46d3eb

Please sign in to comment.