Object parameters should be type hinted

More information: https://insight.symfony.com/what-we-analyse/php.object_parameter_not_type_hinted

  1. {
  2. $this->app[ThumbnailManager::class]->registerThumbnail('blogThumb', [
  3. 'fit' => [
  4. 'width' => '150',
  5. 'height' => '150',
  6. 'callback' => function ($constraint) {

    The parameter constraint, which is an object, should be typehinted.

    Time to fix: about 1 hour
    Open Issue Permalink
    Last edited by Nicolas Widart
  7. $constraint->upsize();
  8. },
  9. ],
  10. ]);
  11. }