Skip to content

Commit f742843

Browse files
authored
Update PatternProperties.phptpl
1 parent 7d9a444 commit f742843

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Templates/Validator/PatternProperties.phptpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
$rollbackValues = $this->_patternProperties;
77

88
foreach ($properties as $propertyKey => $value) {
9+
$propertyKey = (string) $propertyKey;
910
try {
10-
if (!preg_match(base64_decode('{{ pattern }}'), (string) $propertyKey)) {
11+
if (!preg_match(base64_decode('{{ pattern }}'), $propertyKey)) {
1112
continue;
1213
}
1314

0 commit comments

Comments
 (0)