Bugfix: Notice: Undefined index: method thrown in SerializerContextBu… (#3128)
Bugfix: Notice: Undefined index: method thrown in SerializerContextBu… (#3128)

* Bugfix: Notice: Undefined index: method thrown in SerializerContextBuilder (since version 2.5.0)
- switch the order of the checks in the if statement to prevent checking for non-existent 'method' key in $operation check.

* Update src/Serializer/SerializerContextBuilder.php

Co-Authored-By: Kévin Dunglas <60dd2208f9e77f1494860be18b32351d8423fe44@gmail.com>

teohhanhui/api-platform-core,meyerbaptiste/core,teohhanhui/api-platform-core,vincentchalamon/core,vincentchalamon/core,jdeniau/DunglasApiBundle,meyerbaptiste/core,teohhanhui/DunglasApiBundle,soyuka/DunglasApiBundle,meyerbaptiste/core,soyuka/core,vincentchalamon/core,soyuka/core,soyuka/core,jdeniau/DunglasApiBundle,jdeniau/DunglasApiBundle,jdeniau/DunglasApiBundle,soyuka/core,api-platform/core,meyerbaptiste/core,api-platform/core,api-platform/core,teohhanhui/api-platform-core,api-platform/core,vincentchalamon/core,teohhanhui/api-platform-core