Explorar o código

should be || not OR

Жаков Виталий %!s(int64=5) %!d(string=hai) anos
pai
achega
48c7442b63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Autoload/AutoloadGenerator.php

+ 1 - 1
src/Composer/Autoload/AutoloadGenerator.php

@@ -1014,7 +1014,7 @@ INITIALIZER;
      */
     protected function safeCopy($source, $target)
     {
-        if (!file_exists($target) OR !file_exists($source) OR !$this->filesAreEqual($source, $target)) {
+        if (!file_exists($target) || !file_exists($source) || !$this->filesAreEqual($source, $target)) {
             $source = fopen($source, 'r');
             $target = fopen($target, 'w+');