소스 검색

should be || not OR

Жаков Виталий 5 년 전
부모
커밋
48c7442b63
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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+');