Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/phpstan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
php-version: 7.4

- name: Install Dependencies
run: composer update --ignore-platform-reqs
run: |
cp core/config/common.config.sample.php core/config/common.config.php
composer update --ignore-platform-reqs

- name: Setup PHP 8.2 for PHPStan
uses: shivammathur/setup-php@v2
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,18 @@
"platform": {
"php": "7.4"
}
},
"autoload": {
"classmap": [
"core/class/",
"core/com/",
"core/repo/"
],
"files": [
"core/config/common.config.php",
"core/config/compatibility.config.php",
"core/config/jeedom.config.php",
"core/php/utils.inc.php"
]
}
}
4 changes: 0 additions & 4 deletions core/class/translate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,3 @@ public static function setLanguage($_langage) {

/* * *********************Methode d'instance************************* */
}

function __($_content, $_name, $_backslash = false) {
return translate::sentence(str_replace("\'", "'", $_content), $_name, $_backslash);
}
Loading