create-prisma-php-app 2.2.19 → 2.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -212,16 +212,10 @@ class TemplateCompiler
212
212
  }
213
213
 
214
214
  foreach ($node->attributes as $attr) {
215
- if (strpos($attr->value, '{{') !== false) {
216
- $newValue = preg_replace_callback(
217
- '/{{\s*(.+?)\s*}}/u',
218
- function ($matches) {
219
- return $matches[0];
220
- },
221
- $attr->value
222
- );
223
- $node->setAttribute($attr->name, $newValue);
224
- $node->setAttribute("pp-bind-{$attr->name}", "1");
215
+ if (preg_match('/{{\s*(.+?)\s*}}/u', $attr->value, $m)) {
216
+ $expr = $m[1];
217
+ $node->setAttribute($attr->name, $attr->value);
218
+ $node->setAttribute("pp-bind-{$attr->name}", $expr);
225
219
  }
226
220
  }
227
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "2.2.19",
3
+ "version": "2.2.20",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",