File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ protected function prependRepositories(RootPackageInterface $root)
222
222
if (!isset ($ repoJson ['type ' ])) {
223
223
continue ;
224
224
}
225
- if ($ repoJson ['type ' ] == 'path ' && isset ($ repoJson ['url ' ])) {
225
+ if ($ repoJson ['type ' ] === 'path ' && isset ($ repoJson ['url ' ])) {
226
226
$ repoJson ['url ' ] = $ this ->fixRelativePaths (array ($ repoJson ['url ' ]))[0 ];
227
227
}
228
228
$ this ->logger ->info ("Prepending {$ repoJson ['type ' ]} repository " );
Original file line number Diff line number Diff line change @@ -352,8 +352,8 @@ public function onPostInstallOrUpdate(ScriptEvent $event)
352
352
}
353
353
354
354
$ config = $ this ->composer ->getConfig ();
355
- $ preferSource = $ config ->get ('preferred-install ' ) == 'source ' ;
356
- $ preferDist = $ config ->get ('preferred-install ' ) == 'dist ' ;
355
+ $ preferSource = $ config ->get ('preferred-install ' ) === 'source ' ;
356
+ $ preferDist = $ config ->get ('preferred-install ' ) === 'dist ' ;
357
357
358
358
$ installer = Installer::create (
359
359
$ event ->getIO (),
You can’t perform that action at this time.
0 commit comments