create-prisma-php-app 2.3.7 → 2.3.8

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.
@@ -103,16 +103,15 @@ class PHPX implements IPHPX
103
103
  ): string {
104
104
  $reserved = ['class', 'children'];
105
105
 
106
- $filtered = array_diff_key(
106
+ $filteredProps = array_diff_key(
107
107
  $this->props,
108
108
  array_flip([...$reserved, ...$exclude])
109
109
  );
110
110
 
111
- $attributes = array_merge($filtered, $params);
111
+ $attributes = array_merge($params, $filteredProps);
112
112
 
113
113
  $pairs = array_map(
114
- static fn($k, $v) =>
115
- sprintf(
114
+ static fn($k, $v) => sprintf(
116
115
  "%s='%s'",
117
116
  htmlspecialchars($k, ENT_QUOTES, 'UTF-8'),
118
117
  htmlspecialchars((string) $v, ENT_QUOTES, 'UTF-8')
@@ -137,7 +136,7 @@ class PHPX implements IPHPX
137
136
  $class = $this->getMergeClasses();
138
137
 
139
138
  return <<<HTML
140
- <div class="$class" $attributes>{$this->children}</div>
139
+ <div class="{$class}" {$attributes}>{$this->children}</div>
141
140
  HTML;
142
141
  }
143
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",