You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echosprintf("Issue: you can't use the property '%s' because it's not safe for different writing systems; use instead the logical property '%s'\n", $forbidden, $alternative);
@@ -215,7 +217,7 @@ private function getDefaultRoutesConfig(string $dashboardFqcn): array
215
217
thrownew \RuntimeException(sprintf('In the #[AdminDashboard] attribute of the "%s" dashboard controller, the route configuration for the "%s" action defines some unsupported keys. You can only define these keys: "routePath" and "routeName".', $dashboardFqcn, $action));
216
218
}
217
219
218
-
if (isset($customRouteConfig['routeName']) && !preg_match('/^[a-zA-Z0-9_-]+$/', $customRouteConfig['routeName'])) {
220
+
if (isset($customRouteConfig['routeName']) && 1 !== preg_match('/^[a-zA-Z0-9_-]+$/', $customRouteConfig['routeName'])) {
219
221
thrownew \RuntimeException(sprintf('In the #[AdminDashboard] attribute of the "%s" dashboard controller, the route name "%s" for the "%s" action is not valid. It can only contain letter, numbers, dashes, and underscores.', $dashboardFqcn, $customRouteConfig['routeName'], $action));
220
222
}
221
223
@@ -298,6 +300,11 @@ private function getDashboardsRouteConfig(): array
@@ -320,7 +327,7 @@ private function getCrudControllerRouteConfig(string $crudControllerFqcn): array
320
327
}
321
328
322
329
if (null !== $attributeInstance->routeName) {
323
-
if (!preg_match('/^[a-zA-Z0-9_-]+$/', $attributeInstance->routeName)) {
330
+
if (1 !== preg_match('/^[a-zA-Z0-9_-]+$/', $attributeInstance->routeName)) {
324
331
thrownew \RuntimeException(sprintf('In the #[AdminCrud] attribute of the "%s" CRUD controller, the route name "%s" is not valid. It can only contain letter, numbers, dashes, and underscores.', $crudControllerFqcn, $attributeInstance->routeName));
325
332
}
326
333
@@ -340,6 +347,11 @@ private function getCrudControllerRouteConfig(string $crudControllerFqcn): array
@@ -370,7 +382,7 @@ private function getCustomActionsConfig(string $crudControllerFqcn): array
370
382
}
371
383
372
384
if (null !== $attributeInstance->routeName) {
373
-
if (!preg_match('/^[a-zA-Z0-9_-]+$/', $attributeInstance->routeName)) {
385
+
if (1 !== preg_match('/^[a-zA-Z0-9_-]+$/', $attributeInstance->routeName)) {
374
386
thrownew \RuntimeException(sprintf('In the "%s" CRUD controller, the #[AdminAction] attribute applied to the "%s()" action defines an invalid route name: "%s". Valid route names can only contain letters, numbers, dashes, and underscores.', $crudControllerFqcn, $action, $attributeInstance->routeName));
375
387
}
376
388
@@ -397,6 +409,8 @@ private function getCustomActionsConfig(string $crudControllerFqcn): array
0 commit comments