Skip to content

Commit bf80e8a

Browse files
Merge branch '6.4' into 7.0
* 6.4: (32 commits) [Validator] Add missing validator translations in Polish language [FrameworkBundle][Workflow] Add metadata dumping support for GraphvizDumper [HttpClient] Fix encoding some characters in query strings [HttpKernel] make RequestPayloadValueResolver:resolve() throw on variadic argument Fix typos Added redlink notifier [SecurityBundle] Remove last usages of tag `security.remember_me_aware` [VarDumper] Dumping DateTime throws error if getTimezone is false [DependencyInjection] Deprecate `ContainerAwareInterface`, `ContainerAwareTrait` and `ContainerAwareLoader` Only update autoload_runtime.php when it changed [Routing] Fix version in CHANGELOG [Console] Aligned multiline text in vertical table Fix README [Notifier] add Ntfy bridge [FrameworkBundle] Fix secrets:list not displaying local vars [Intl] Update the ICU data to 73.2 [DoctrineBridge] add missing UPGRADE notes for #50689 [HttpClient] Force int conversion for floated multiplier for GenericRetryStrategy [Security] Fix log message in OidcTokenHandler [Notifier] Add Novu bridge ...
2 parents 169d32f + b19281f commit bf80e8a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Internal/ComposerPlugin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ public function updateAutoloadFile(): void
105105
'%runtime_options%' => '['.substr(var_export($extra, true), 7, -1)." 'project_dir' => {$projectDir},\n]",
106106
]);
107107

108-
file_put_contents(substr_replace($autoloadFile, '_runtime', -4, 0), $code);
108+
// could use Composer\Util\Filesystem::filePutContentsIfModified once Composer 1.x support is dropped for this plugin
109+
$path = substr_replace($autoloadFile, '_runtime', -4, 0);
110+
$currentContent = @file_exists($path) ? @file_get_contents($path) : false;
111+
if (false === $currentContent || $currentContent !== $code) {
112+
file_put_contents($path, $code);
113+
}
109114
}
110115

111116
public static function getSubscribedEvents(): array

0 commit comments

Comments
 (0)