Skip to content

Commit 7cee8e3

Browse files
committed
Merge branch '1.4'
2 parents cc92345 + 1f4882a commit 7cee8e3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Composer/Autoload/AutoloadGenerator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,6 @@ protected function getPathCode(Filesystem $filesystem, $basePath, $vendorPath, $
534534
}
535535
}
536536

537-
if (preg_match('/\.phar$/', $path)) {
538-
$baseDir = "'phar://' . " . $baseDir;
539-
}
540-
541537
return $baseDir . (($path !== false) ? var_export($path, true) : "");
542538
}
543539

tests/Composer/Test/IO/ConsoleIOTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,11 @@ public function testAskAndValidate()
218218
->will($this->returnValue($helperMock))
219219
;
220220

221+
$validator = function ($value) {
222+
return true;
223+
};
221224
$consoleIO = new ConsoleIO($inputMock, $outputMock, $setMock);
222-
$consoleIO->askAndValidate('Why?', 'validator', 10, 'default');
225+
$consoleIO->askAndValidate('Why?', $validator, 10, 'default');
223226
}
224227

225228
public function testSelect()

tests/Composer/Test/Json/ComposerSchemaTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ private function check($json)
101101
if (!$validator->isValid()) {
102102
$errors = $validator->getErrors();
103103

104-
// remove justinrainbow/json-schema 3.0 props so it works with all versions
104+
// remove justinrainbow/json-schema 3.0/5.2 props so it works with all versions
105105
foreach ($errors as &$err) {
106106
unset($err['pointer']);
107+
unset($err['context']);
107108
}
108109

109110
return $errors;

0 commit comments

Comments
 (0)