8000 SCA with Php Inspections (EA Extended) by kalessil · Pull Request #24960 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

SCA with Php Inspections (EA Extended) #24960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Php Inspecions (EA Extended): revert LOCK_EX for deprecated and dev-c…
…ode.
  • Loading branch information
kalessil committed Nov 17, 2017
commit 161f2d474c696d4ca85128370440769152fa44ab
2 changes: 1 addition & 1 deletion src/Symfony/Component/ClassLoader/ClassMapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function dump($dirs, $file)
$maps = array_merge($maps, static::createMap($dir));
}

file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true)), LOCK_EX);
file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true)));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ public function setClassCache(array $classes)
@trigger_error(__METHOD__.'() is deprecated since version 3.3, to be removed in 4.0.', E_USER_DEPRECATED);
}

file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/classes.map', sprintf('<?php return %s;', var_export($classes, true)), LOCK_EX);
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/classes.map', sprintf('<?php return %s;', var_export($classes, true)));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public function write($path, $locale, $data)
$data = preg_replace('/ /', ' ', $data);
$data = sprintf($template, $data);

file_put_contents($path.'/'.$locale.'.php', $data, LOCK_EX);
file_put_contents($path.'/'.$locale.'.php', $data);
}
}
0