SCA with Php Inspections (EA Extended)

This commit is contained in:
Vladimir Reznichenko 2017-11-13 21:26:24 +01:00 committed by Nicolas Grekas
parent ecad1c4b3b
commit 4d39a2d8dc
4 changed files with 4 additions and 4 deletions

View File

@ -423,7 +423,7 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
*/
public function setAnnotatedClassCache(array $annotatedClasses)
{
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)));
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)), LOCK_EX);
}
/**

View File

@ -82,7 +82,7 @@ final class Definition
private function addPlace($place)
{
if (!preg_match('{^[\w\d_-]+$}', $place)) {
if (!preg_match('{^[\w_-]+$}', $place)) {
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $place));
}

View File

@ -77,7 +77,7 @@ class DefinitionBuilder
*/
public function addPlace($place)
{
if (!preg_match('{^[\w\d_-]+$}', $place)) {
if (!preg_match('{^[\w_-]+$}', $place)) {
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $place));
}

View File

@ -30,7 +30,7 @@ class Transition
*/
public function __construct($name, $froms, $tos)
{
if (!preg_match('{^[\w\d_-]+$}', $name)) {
if (!preg_match('{^[\w_-]+$}', $name)) {
throw new InvalidArgumentException(sprintf('The transition "%s" contains invalid characters.', $name));
}