Aller au contenu
Fikri.fr

Fikri.fr

PHP, Symfony, Laravel by Marouane FIKRI

  • Accueil
  • PHP
  • Symfony
  • Laravel
  • JavaScript
  • Angular
  • VueJS
  • ReactJS

Catégorie : symfony

PHP 8.2 itroduces Constants in traits

Publié par Fikri.fr le dans API Platform, laravel, php, symfony

You cannot access the constant through the name of the trait, but, you can access the constant through the class that uses the trait. PHP 8.2 was released on November 25, 2021, and it introduced many new features and improvements…

PHP 8.2 Deprecates dynamic properties

Publié par Fikri.fr le dans API Platform, laravel, php, symfony

PHP 8.2 is the latest version of the popular programming language and it comes with a range of new features and updates. One of the most notable changes in PHP 8.2 is the deprecation of dynamic properties. This means that…

PHP 8.2 Readonly classes

Publié par Fikri.fr le dans laravel, php, symfony

PHP 8.2 was released in November 2021 and brought several new features and improvements to the popular programming language. One of the most notable additions is the introduction of Readonly classes, which offer developers a new way to ensure that…

PHP 8.1 Enum

Publié par Fikri.fr le dans laravel, php, symfony

PHP 8.1, the latest version of the popular server-side scripting language, introduces a new feature called Enum. This feature allows developers to create enumerated types, which are a set of named values that can be used to define a list…

Call to an undefined method Symfony\Component\Serializer\Normalizer\NormalizerInterface::denormalize().

Publié par Fikri.fr le dans API Platform, laravel, Non classé, php, symfony

In API Platform or in Symfony, If you use a denormalization like this : use Symfony\Component\Serializer\Normalizer\NormalizerInterface; private NormalizerInterface $normalizer; $this->normalizer = $normalizer; $this->normalizer->denormalize($data, Object::class) You need to change it to a denormalizerInterface like this use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; private DenormalizerInterface $denormalizer; $this->denormalizer…

Cannot normalize attribute because the injected serializer is not a normalizer.

Publié par Fikri.fr le dans API Platform, laravel, php, symfony

When using API Platform or symfony serializations, you can get this error This error happens when you use an ObjectNormalizer Symfony\Component\Serializer\Normalizer\ObjectNormalizer instead of an Symfony\Component\Serializer\Normalizer\NormalizerInterface To avoit this error Use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

Symfony 4.3

Publié par Fikri.fr le dans php, symfony

Les nouveautés dans symfony 3 HTTP Client Mailer Les tests

Rechercher

Articles récents

  • SQL injection attacks
  • SQL Injection with examples
  • PHP function that creates a unique ID with 3 letters and 3 numbers:
  • PHP 8.2 itroduces Constants in traits
  • PHP 8.2 Deprecates dynamic properties

Catégories

  • API Platform
  • javascript
  • laravel
  • Non classé
  • php
  • reactjs
  • sql
  • symfony
  • vuejs

Vue Global

http mailer PHP Symfony tests
Copyright © Fikri.fr | Tous droits réservés.
Thème Fashify par FRT