Object parameters should be type hinted

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

  1. });
  2. }
  3. private function registerValidators()
  4. {
  5. Validator::extend('extensions', function ($attribute, $value, $parameters) {

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

    Time to fix: about 1 hour
    Open Issue Permalink
    Last edited by Nicolas Widart
  6. return in_array($value->getClientOriginalExtension(), $parameters);
  7. });
  8. Validator::replacer('extensions', function ($message, $attribute, $rule, $parameters) {
  9. return str_replace([':attribute', ':values'], [$attribute, implode(',', $parameters)], $message);

User specific files should not appear in .gitignore

More information: https://insight.symfony.com/what-we-analyse/git.user_specific_ignored_file

in .gitignore, line 1
  1. .idea/

    .idea/ is user-specific and should not appear in a project .gitignore. Consider adding it to the user global .gitignore instead.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Nicolas Widart
  2. .php_cs.cache
  3. /vendor/
  4. composer.lock
  5. Modules/