SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
Actu dans l’univers PHP
Sondage
Version Symfony
Version PHP
PHP 8.2
● Nouvelles classes readonly
● Autoriser true, false, et null comme types
autonomes
● Types de forme normale disjonctive (DNF)
● Expurgez les paramètres sensibles dans
les Back Traces
● Nouvelle fonction mysqli_execute_query
et méthode mysqli::execute_query
● Récupérer les propriétés de enum dans
les expressions const
● Autoriser les constantes dans les Traits
● Dépréciation des propriétés dynamiques
(et nouvel attribut
#[AllowDynamicProperties] )
● Dépréciation des appelants partiellement
supportés
● Dépréciation des fonctions #utf8_encode()
et utf8_decode()
● Dépréciation de ${} Interpolation de
chaînes de caractères
● Dépréciation des fonctions mbstring pour
les entités
Base64/QPrint/Uuencode/HTML
● Suppression du support de libmysql de
mysqli
● Conversion des cas indépendants de la
localisation
● Amélioration de l’extension aléatoire
class readonly
<?php
readonly class Point
{
public function __construct(
public int $x,
public int $y
) {}
}
true, false et null comme types d’union
public function getUser(int $id): User|null
{
return null;
}
public function racine(int $nb): float|false
{
if ($nb<0) {
return false;
}
return sqrt($nb);
}
Dépréciation : type dynamique
class Post {
private int $pid;
}
$post = new Post();
$post->name = 'Kinsta';
Dépréciation : callable
"self::method"
"parent::method"
"static::method"
["self", "method"]
["parent", "method"]
["static", "method"]
["Foo", "Bar::method"]
[new Foo, "Bar::method"]
Dépréciation : autre
Deprecated: Function utf8_encode()
Deprecated: Function utf8_decode()
Deprecated: Using ${}
mbstring, iconv, et intl
SF 6.2
● New in Symfony 6.2: Profiler Redesign
● New in Symfony 6.2: Console improvements
● New in Symfony 6.2: Security Improvements
(Part 1)
● New in Symfony 6.2: More Extensible Mailer
● New in Symfony 6.2: DX Improvements
● New in Symfony 6.2: New Uid Features
● New in Symfony 6.2: Improved Enum Support
● New in Symfony 6.2: Better Debugging
Commands
● New in Symfony 6.2: Improved File Validator
● New in Symfony 6.2: Notifier and Mailer
Integrations
● New in Symfony 6.2: Better PHP Translation
Extractor
● New in Symfony 6.2: Conditional Constraints
● New in Symfony 6.2: PSR-4 Route Loader
● New in Symfony 6.2: Finder Improvements
● New in Symfony 6.2: Clock Component
● New in Symfony 6.2: Access Token Authenticator
● New in Symfony 6.2: Better Emoji Support 🎉
● New in Symfony 6.2: Built-in Cache, Security,
Template and Doctrine Attributes
class Discount
{
#[AssertGreaterThan(0)]
#[AssertWhen(
expression: 'this.type == "percent"',
constraints: [
new AssertLessThanOrEqual(100, message: 'The value should be between 1 and 100!')
],
)]
private ?int $value;
// ...
}
Site utile
https://wiki.php.net/rfc
https://kinsta.com/fr/blog/php-8-2/
https://symfony.com/blog/category/living-on-the-
edge/6.2

Contenu connexe

Similaire à PHP8.2_SF8.2.pdf

Monitoring d'applications/environnements PHP : APM et Pinba
Monitoring d'applications/environnements PHP : APM et PinbaMonitoring d'applications/environnements PHP : APM et Pinba
Monitoring d'applications/environnements PHP : APM et PinbaIdaf_1er
 
Symfony3 overview
Symfony3 overviewSymfony3 overview
Symfony3 overviewSymfonyMu
 
Scala : programmation fonctionnelle
Scala : programmation fonctionnelleScala : programmation fonctionnelle
Scala : programmation fonctionnelleMICHRAFY MUSTAFA
 
PHP 7 et Symfony 3
PHP 7 et Symfony 3PHP 7 et Symfony 3
PHP 7 et Symfony 3Eddy RICHARD
 
Tp python dauphine
Tp python dauphineTp python dauphine
Tp python dauphinenoussa krid
 
Ops@viadeo : Puppet & Co... 6 mois après par Xavier Krantz
Ops@viadeo : Puppet & Co... 6 mois après par Xavier KrantzOps@viadeo : Puppet & Co... 6 mois après par Xavier Krantz
Ops@viadeo : Puppet & Co... 6 mois après par Xavier KrantzOlivier DASINI
 
Chapitre1: Langage Python
Chapitre1: Langage PythonChapitre1: Langage Python
Chapitre1: Langage PythonAziz Darouichi
 
API Cockpit : faites communiquer vos applications web
API Cockpit : faites communiquer vos applications webAPI Cockpit : faites communiquer vos applications web
API Cockpit : faites communiquer vos applications webParis, France
 
Optimisation LAMP
Optimisation LAMPOptimisation LAMP
Optimisation LAMPcyruss666
 
Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023
Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023
Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023ChristopheVidal15
 
Symfony 2 : chapitre 1 - Présentation Générale
Symfony 2 : chapitre 1 - Présentation GénéraleSymfony 2 : chapitre 1 - Présentation Générale
Symfony 2 : chapitre 1 - Présentation GénéraleAbdelkader Rhouati
 
Presentation Symfony2
Presentation Symfony2Presentation Symfony2
Presentation Symfony2Ahmed ABATAL
 
PyConFR - testons en python
PyConFR - testons en pythonPyConFR - testons en python
PyConFR - testons en pythongburet
 

Similaire à PHP8.2_SF8.2.pdf (20)

IF-RMI.pdf
IF-RMI.pdfIF-RMI.pdf
IF-RMI.pdf
 
Monitoring d'applications/environnements PHP : APM et Pinba
Monitoring d'applications/environnements PHP : APM et PinbaMonitoring d'applications/environnements PHP : APM et Pinba
Monitoring d'applications/environnements PHP : APM et Pinba
 
Symfony3 overview
Symfony3 overviewSymfony3 overview
Symfony3 overview
 
Scala : programmation fonctionnelle
Scala : programmation fonctionnelleScala : programmation fonctionnelle
Scala : programmation fonctionnelle
 
Django by mrjmad
Django by mrjmadDjango by mrjmad
Django by mrjmad
 
PHP 7 et Symfony 3
PHP 7 et Symfony 3PHP 7 et Symfony 3
PHP 7 et Symfony 3
 
Tp python dauphine
Tp python dauphineTp python dauphine
Tp python dauphine
 
Tp python
Tp pythonTp python
Tp python
 
Formation Google App Engine
Formation Google App EngineFormation Google App Engine
Formation Google App Engine
 
Ops@viadeo : Puppet & Co... 6 mois après par Xavier Krantz
Ops@viadeo : Puppet & Co... 6 mois après par Xavier KrantzOps@viadeo : Puppet & Co... 6 mois après par Xavier Krantz
Ops@viadeo : Puppet & Co... 6 mois après par Xavier Krantz
 
Chapitre1: Langage Python
Chapitre1: Langage PythonChapitre1: Langage Python
Chapitre1: Langage Python
 
API Cockpit : faites communiquer vos applications web
API Cockpit : faites communiquer vos applications webAPI Cockpit : faites communiquer vos applications web
API Cockpit : faites communiquer vos applications web
 
Optimisation LAMP
Optimisation LAMPOptimisation LAMP
Optimisation LAMP
 
Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023
Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023
Les nouveautés de PrestaShop 9 par la team PrestaShop - FoP Day 2023
 
Symfony 2 : chapitre 1 - Présentation Générale
Symfony 2 : chapitre 1 - Présentation GénéraleSymfony 2 : chapitre 1 - Présentation Générale
Symfony 2 : chapitre 1 - Présentation Générale
 
PHP5: Endgame
PHP5: EndgamePHP5: Endgame
PHP5: Endgame
 
Presentation Symfony2
Presentation Symfony2Presentation Symfony2
Presentation Symfony2
 
PyConFR - testons en python
PyConFR - testons en pythonPyConFR - testons en python
PyConFR - testons en python
 
Php 5.3
Php 5.3Php 5.3
Php 5.3
 
Ansible tp
Ansible tpAnsible tp
Ansible tp
 

Plus de Julien Vinber

Swoole Meetup AFUP¨Montpellier 27/01/2021
Swoole   Meetup  AFUP¨Montpellier 27/01/2021Swoole   Meetup  AFUP¨Montpellier 27/01/2021
Swoole Meetup AFUP¨Montpellier 27/01/2021Julien Vinber
 
Et si on en finissait avec CRUD ?
Et si on en finissait avec CRUD ?Et si on en finissait avec CRUD ?
Et si on en finissait avec CRUD ?Julien Vinber
 
Php 7.4 2020-01-28 - afup
Php 7.4   2020-01-28 - afupPhp 7.4   2020-01-28 - afup
Php 7.4 2020-01-28 - afupJulien Vinber
 
Meet up symfony 16 juin 2017 - Les PSR
Meet up symfony 16 juin 2017 -  Les PSRMeet up symfony 16 juin 2017 -  Les PSR
Meet up symfony 16 juin 2017 - Les PSRJulien Vinber
 
Meet up symfony 11 octobre 2016 - Les formulaire
Meet up symfony 11 octobre 2016 - Les formulaireMeet up symfony 11 octobre 2016 - Les formulaire
Meet up symfony 11 octobre 2016 - Les formulaireJulien Vinber
 
Meetup symfony 30 janvier 2017 - événement
Meetup symfony 30 janvier 2017 - événementMeetup symfony 30 janvier 2017 - événement
Meetup symfony 30 janvier 2017 - événementJulien Vinber
 

Plus de Julien Vinber (8)

Sulu LE CMS Ultime
Sulu LE CMS UltimeSulu LE CMS Ultime
Sulu LE CMS Ultime
 
Swoole Meetup AFUP¨Montpellier 27/01/2021
Swoole   Meetup  AFUP¨Montpellier 27/01/2021Swoole   Meetup  AFUP¨Montpellier 27/01/2021
Swoole Meetup AFUP¨Montpellier 27/01/2021
 
Et si on en finissait avec CRUD ?
Et si on en finissait avec CRUD ?Et si on en finissait avec CRUD ?
Et si on en finissait avec CRUD ?
 
Php 7.4 2020-01-28 - afup
Php 7.4   2020-01-28 - afupPhp 7.4   2020-01-28 - afup
Php 7.4 2020-01-28 - afup
 
Symfony vs laravel
Symfony vs  laravelSymfony vs  laravel
Symfony vs laravel
 
Meet up symfony 16 juin 2017 - Les PSR
Meet up symfony 16 juin 2017 -  Les PSRMeet up symfony 16 juin 2017 -  Les PSR
Meet up symfony 16 juin 2017 - Les PSR
 
Meet up symfony 11 octobre 2016 - Les formulaire
Meet up symfony 11 octobre 2016 - Les formulaireMeet up symfony 11 octobre 2016 - Les formulaire
Meet up symfony 11 octobre 2016 - Les formulaire
 
Meetup symfony 30 janvier 2017 - événement
Meetup symfony 30 janvier 2017 - événementMeetup symfony 30 janvier 2017 - événement
Meetup symfony 30 janvier 2017 - événement
 

PHP8.2_SF8.2.pdf

  • 6. ● Nouvelles classes readonly ● Autoriser true, false, et null comme types autonomes ● Types de forme normale disjonctive (DNF) ● Expurgez les paramètres sensibles dans les Back Traces ● Nouvelle fonction mysqli_execute_query et méthode mysqli::execute_query ● Récupérer les propriétés de enum dans les expressions const ● Autoriser les constantes dans les Traits ● Dépréciation des propriétés dynamiques (et nouvel attribut #[AllowDynamicProperties] ) ● Dépréciation des appelants partiellement supportés ● Dépréciation des fonctions #utf8_encode() et utf8_decode() ● Dépréciation de ${} Interpolation de chaînes de caractères ● Dépréciation des fonctions mbstring pour les entités Base64/QPrint/Uuencode/HTML ● Suppression du support de libmysql de mysqli ● Conversion des cas indépendants de la localisation ● Amélioration de l’extension aléatoire
  • 7. class readonly <?php readonly class Point { public function __construct( public int $x, public int $y ) {} }
  • 8. true, false et null comme types d’union public function getUser(int $id): User|null { return null; } public function racine(int $nb): float|false { if ($nb<0) { return false; } return sqrt($nb); }
  • 9. Dépréciation : type dynamique class Post { private int $pid; } $post = new Post(); $post->name = 'Kinsta';
  • 10. Dépréciation : callable "self::method" "parent::method" "static::method" ["self", "method"] ["parent", "method"] ["static", "method"] ["Foo", "Bar::method"] [new Foo, "Bar::method"]
  • 11. Dépréciation : autre Deprecated: Function utf8_encode() Deprecated: Function utf8_decode() Deprecated: Using ${} mbstring, iconv, et intl
  • 13. ● New in Symfony 6.2: Profiler Redesign ● New in Symfony 6.2: Console improvements ● New in Symfony 6.2: Security Improvements (Part 1) ● New in Symfony 6.2: More Extensible Mailer ● New in Symfony 6.2: DX Improvements ● New in Symfony 6.2: New Uid Features ● New in Symfony 6.2: Improved Enum Support ● New in Symfony 6.2: Better Debugging Commands ● New in Symfony 6.2: Improved File Validator ● New in Symfony 6.2: Notifier and Mailer Integrations ● New in Symfony 6.2: Better PHP Translation Extractor ● New in Symfony 6.2: Conditional Constraints ● New in Symfony 6.2: PSR-4 Route Loader ● New in Symfony 6.2: Finder Improvements ● New in Symfony 6.2: Clock Component ● New in Symfony 6.2: Access Token Authenticator ● New in Symfony 6.2: Better Emoji Support 🎉 ● New in Symfony 6.2: Built-in Cache, Security, Template and Doctrine Attributes
  • 14. class Discount { #[AssertGreaterThan(0)] #[AssertWhen( expression: 'this.type == "percent"', constraints: [ new AssertLessThanOrEqual(100, message: 'The value should be between 1 and 100!') ], )] private ?int $value; // ... }