Potential errors are silenced in your project

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

  1. $fc = file_get_contents($file);
  2. if ($fc === false) {
  3. $this->error('Cannot open file: ' . $file);
  4. }
  5. $size = strlen($fc);
  6. $date = @date('YmdHisO', filemtime($file));

    Adding "@" before date('YmdHisO', filemtime($file)) prevents warning and errors during this function execution from being displayed.
    If you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.

    Time to fix: about 4 hours
    Read doc Open Issue Permalink
    Last edited by Andreas Müller
  7. $md = 'D:' . substr($date, 0, -2) . "'" . substr($date, -2) . "'";;
  8. $this->putNewObj();
  9. $info['n'] = $this->objectNumber;
  10. $this->put('<<');