Skip to content

Commit 01dcb23

Browse files
committed
Do not use LOCK_EX due to "Exclusive locks are not supported for this stream" error
1 parent 1e0183e commit 01dcb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playground/wordpress/src/wp-config-transformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function to_string(): string {
6868
* @param string $path The path to the wp-config.php file.
6969
*/
7070
public function to_file( string $path ): void {
71-
$result = file_put_contents( $path, $this->to_string(), LOCK_EX );
71+
$result = file_put_contents( $path, $this->to_string() );
7272
if ( false === $result ) {
7373
throw new Exception( sprintf( "Failed to write to the '%s' file.", $path ) );
7474
}

0 commit comments

Comments
 (0)