Skip to content

Commit

Permalink
Fix php8.2 deprecation regarding using self:: in callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas DUPRE committed Mar 29, 2024
1 parent 9532f22 commit da88c86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Objet de la version ``2.0.0`` : Concevoir un coeur du moteur, une interface pour
L'objectif est aussi de transformer le moteur en respectant les **standards PSR**.


## 2.1.1 (2024-03-29)

- [UPDATE] Fix deprecation php8.2 `Use of "self" in callables is deprecated in ... on line ...`.


## 2.0.x-alpha3 (2017-10-07)

- [CHANGED] ``addLanguage`` devient ``addLanguages``, car admet un ou plusieurs code de langue.
Expand Down
8 changes: 4 additions & 4 deletions src/SYSLang/SYSLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Interface d'utilisation de SYSLang pour PHP.
*
* @author Nicolas DUPRE
* @release 04.07.2021
* @version 2.1.0
* @release 29.03.2024
* @version 2.1.1
* @package Index
*
* @TODO : Faire les méthodes pour supprimer les targets possible.
Expand Down Expand Up @@ -34,11 +34,11 @@ class SYSLang extends Core
protected $targets = [
'SST' => [
'name' => 'SERVER',
'callback' => 'self::sstCallback'
'callback' => 'SYSLang\SYSLang::sstCallback'
],
'CST' => [
'name' => 'CLIENT',
'callback' => 'self::cstCallback'
'callback' => 'SYSLang\SYSLang::cstCallback'
]
];

Expand Down

0 comments on commit da88c86

Please sign in to comment.