Skip to content

Commit c4eb603

Browse files
Merge branch '3.4' into 4.0
* 3.4: SCA with Php Inspections (EA Extended) Add test case for #25264 Fixed the null value exception case. Remove rc/beta suffix from composer.json files Throw an exception is expression language is not installed Fail as early and noisily as possible [Console][DI] Fail gracefully [FrameworkBundle] Fix visibility of a test helper [link] clear the cache after linking [DI] Trigger deprecation when setting a to-be-private synthetic service [link] Prevent warnings when running link with 2.7 [Validator] ExpressionValidator should use OBJECT_TO_STRING to allow value in message do not eagerly filter comment lines [WebProfilerBundle], [TwigBundle] Fix Profiler breaking XHTML pages (Content-Type: application/xhtml+xml)
2 parents 33ea649 + a1ba5e9 commit c4eb603

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private function setInitialPlace(string $place = null)
8282

8383
private function addPlace(string $place)
8484
{
85-
if (!preg_match('{^[\w\d_-]+$}', $place)) {
85+
if (!preg_match('{^[\w_-]+$}', $place)) {
8686
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $place));
8787
}
8888

DefinitionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function setInitialPlace($place)
7777
*/
7878
public function addPlace($place)
7979
{
80-
if (!preg_match('{^[\w\d_-]+$}', $place)) {
80+
if (!preg_match('{^[\w_-]+$}', $place)) {
8181
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $place));
8282
}
8383

Transition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Transition
3030
*/
3131
public function __construct(string $name, $froms, $tos)
3232
{
33-
if (!preg_match('{^[\w\d_-]+$}', $name)) {
33+
if (!preg_match('{^[\w_-]+$}', $name)) {
3434
throw new InvalidArgumentException(sprintf('The transition "%s" contains invalid characters.', $name));
3535
}
3636

0 commit comments

Comments
 (0)