SCA with Php Inspections (EA Extended)
This commit is contained in:
parent
ecad1c4b3b
commit
4d39a2d8dc
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user