diff --git a/src/CRUDlex/FileHandler.php b/src/CRUDlex/FileHandler.php index 5686d29..590b7e3 100644 --- a/src/CRUDlex/FileHandler.php +++ b/src/CRUDlex/FileHandler.php @@ -98,7 +98,7 @@ protected function shouldWriteFile(AbstractData $data, Request $request, Entity $filesystem = $this->filesystem; $this->performOnFiles($entity, $entityName, function($entity, $entityName, $field) use ($filesystem, $request) { $file = $request->files->get($field); - if ($file != null && $file->isValid()) { + if ($file !== null && $file->isValid()) { $path = $this->getPath($entityName, $entity, $field); $filename = $path.'/'.$file->getClientOriginalName(); if ($filesystem->has($filename)) {