diff options
| author | 2024-11-28 17:11:04 +0100 | |
|---|---|---|
| committer | 2024-11-28 17:11:04 +0100 | |
| commit | 15745d42b779ad14efde2932ab116f45eee39246 (patch) | |
| tree | 2528a36184d8152d4f2d90dc73df680f84bbe1d1 /docs | |
| parent | 604b186638276203c8495a3ee86da0cc240ab4d0 (diff) | |
Upgrade code to php 8.1 (#6748)
* revert
Fix code indentation
Fix code
Upgrade code to php 8.1
* fix remarques
* code review
* code review
* code review
* Apply suggestions from code review
* code review
* Fixes
* Many remainging updates of array syntax
* Lost case 'reading-list'
* Uneeded PHPDoc
---------
Co-authored-by: Luc Sanchez <l.sanchez-prestataire@alptis.fr>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/en/admins/05_Configuring_email_validation.md | 4 | ||||
| -rw-r--r-- | docs/en/developers/05_Release_new_version.md | 4 | ||||
| -rw-r--r-- | docs/fr/developers/05_Release_new_version.md | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/docs/en/admins/05_Configuring_email_validation.md b/docs/en/admins/05_Configuring_email_validation.md index aec6b8b75..2bbfeb6c3 100644 --- a/docs/en/admins/05_Configuring_email_validation.md +++ b/docs/en/admins/05_Configuring_email_validation.md @@ -36,7 +36,7 @@ PHPMailer documentation](http://phpmailer.github.io/PHPMailer/classes/PHPMailer. ```php 'mailer' => 'smtp', // instead of 'mail' - 'smtp' => array( + 'smtp' => [ 'hostname' => 'example.net', 'host' => 'smtp.example.net', // URL to your smtp server 'port' => 465, @@ -46,7 +46,7 @@ PHPMailer documentation](http://phpmailer.github.io/PHPMailer/classes/PHPMailer. 'password' => 'yoursecretpassword', 'secure' => 'ssl', // '', 'ssl' or 'tls' 'from' => 'alice@example.net', - ), + ], ``` ## Check your SMTP server is correctly configured diff --git a/docs/en/developers/05_Release_new_version.md b/docs/en/developers/05_Release_new_version.md index ef69084ae..b6a22982d 100644 --- a/docs/en/developers/05_Release_new_version.md +++ b/docs/en/developers/05_Release_new_version.md @@ -53,7 +53,7 @@ Here’s an example of a `versions.php` file: ```php <?php -return array( +return [ // STABLE '0.8.0' => '1.0.0', '0.8.1' => '1.0.0', @@ -62,7 +62,7 @@ return array( '1.1.2-dev' => 'dev', '1.1.3-dev' => 'dev', '1.1.4-dev' => 'dev', -); +]; ``` And here’s how this table works: diff --git a/docs/fr/developers/05_Release_new_version.md b/docs/fr/developers/05_Release_new_version.md index c9c4e9389..83b164ce8 100644 --- a/docs/fr/developers/05_Release_new_version.md +++ b/docs/fr/developers/05_Release_new_version.md @@ -83,7 +83,7 @@ Voici un exemple de fichier `versions.php` : ```php <?php -return array( +return [ // STABLE '0.8.0' => '1.0.0', '0.8.1' => '1.0.0', @@ -92,7 +92,7 @@ return array( '1.1.2-dev' => 'dev', '1.1.3-dev' => 'dev', '1.1.4-dev' => 'dev', -); +]; ``` Et voici comment fonctionne cette table : |
